Bug 9644 - Replace YUI button on the suggestions management page with Bootstrap
authorOwen Leonard <oleonard@myacpl.org>
Sun, 3 Feb 2013 20:28:19 +0000 (15:28 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Mon, 18 Feb 2013 14:08:33 +0000 (09:08 -0500)
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>
koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt

index b687595..297207b 100644 (file)
 <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>