Bug 9644 - Replace YUI button on the suggestions management page with Bootstrap

This patch converts the toolbar on the suggestions page to to Bootstrap,
replacing YUI button code with Bootstrap markup.

To test, view the suggestions page and confirm that the "New purchase
suggestion" button looks correct and works correctly.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>

Comment: Another confirmation. Button looks and works. No errors.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works nicely, no problems found.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
Owen Leonard 2013-02-03 15:28:19 -05:00 committed by Jared Camins-Esakov
parent 06f83e8690
commit fe13e889ee

View file

@ -20,10 +20,6 @@
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
<script type="text/javascript">
// <![CDATA[
function yuiToolbar() {
new YAHOO.widget.Button("newsuggestion");
}
$.tablesorter.addParser({
id: 'articles',
is: function(s) {return false; },
@ -39,7 +35,6 @@ function displayOther(id,show,hide){
$("#"+show+id).show();
}
$(document).ready(function() {
yuiToolbar();
$('#suggestiontabs').tabs({
select: function(ui) {
$("#loadingtab").show();
@ -356,10 +351,9 @@ $(document).ready(function() { calcNewsuggTotal(); });
[% END %]
[% IF ( op_else ) %]
<div id="toolbar">
<ul class="toolbar">
<li> <a id="newsuggestion" href="suggestion.pl?op=add">New purchase suggestion</a></li>
</ul></div>
<div id="toolbar" class="btn-toolbar">
<a class="btn btn-small" id="newsuggestion" href="suggestion.pl?op=add"><i class="icon-plus"></i> New purchase suggestion</a>
</div>
<h1>Suggestions management</h1>