From a0918aa97a30b6248957f142c5475677792d5b96 Mon Sep 17 00:00:00 2001 From: Owen Leonard <oleonard@myacpl.org> Date: Sun, 3 Feb 2013 15:28:19 -0500 Subject: [PATCH] [SIGNED-OFF] 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. --- .../prog/en/modules/suggestion/suggestion.tt | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index b687595..297207b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -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> -- 1.7.9.5