[Koha-patches] [PATCH] Bug 9632 - Replace YUI button on the currencies administration page with Bootstrap

Owen Leonard oleonard at myacpl.org
Fri Feb 15 18:38:41 CET 2013


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

To test, view the currencies and exchange rates administration page. The
'New currency' button should look correct and work correctly.
---
 .../prog/en/modules/admin/currency.tt              |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt
index 4834ff3..99f693b 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt
@@ -46,8 +46,6 @@
     }
 
     $(document).ready(function() {
-        new YAHOO.widget.Button("newcurrency");
-
         // prevents users to check active with a currency != 1
         $("#rate").keyup(function() {
             check_currency( $(this).val() );
@@ -76,10 +74,9 @@
     <div class="yui-b">
 
 [% IF ( else ) %]
-<div id="toolbar">
-    <ul class="toolbar">
-    <li><a id="newcurrency" href="[% script_name %]?op=add_form">New currency</a></li>
-</ul></div>
+<div id="toolbar" class="btn-toolbar">
+    <a class="btn btn-small" id="newcurrency" href="[% script_name %]?op=add_form"><i class="icon-plus"></i> New currency</a>
+</div>
 [% END %]
 
 [% IF ( add_form ) %]
-- 
1.7.9.5


More information about the Koha-patches mailing list