[Koha-patches] [PATCH] Bug 9644 - Replace YUI button on the suggestions management page with Bootstrap

Owen Leonard oleonard at myacpl.org
Fri Feb 15 21:20:13 CET 2013


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.
---
 .../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


More information about the Koha-patches mailing list