Bug 11764 - Move repeatedly redefined function toUC() into staff-global.js
[koha_fer] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / currency.tt
index 4834ff3..def9a02 100644 (file)
@@ -7,11 +7,6 @@
 [% INCLUDE 'doc-head-close.inc' %]
 <script type="text/javascript">
 //<![CDATA[
-    function toUC(f) {
-        var x=f.value.toUpperCase();
-        f.value=x;
-        return true;
-    }
     function Check(f) {
         var _alertString="";
         var alertString2;
@@ -46,8 +41,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 ) %]