Bug 9632 - Replace YUI button on the currencies administration page with Bootstrap
authorOwen Leonard <oleonard@myacpl.org>
Sun, 3 Feb 2013 00:09:42 +0000 (19:09 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Mon, 18 Feb 2013 13:51:45 +0000 (08:51 -0500)
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.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Comment: Work and look correctly. 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/admin/currency.tt

index 4834ff3..99f693b 100644 (file)
@@ -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() );
     <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 ) %]