Bug 9689 - Replace YUI buttons on the OAI sets administration page with Bootstrap
authorOwen Leonard <oleonard@myacpl.org>
Thu, 21 Feb 2013 21:12:22 +0000 (16:12 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 7 Mar 2013 15:16:36 +0000 (10:16 -0500)
This patch converts the toolbar on the OAI sets administration page to
Bootstrap, replacing YUI button code with Bootstrap markup.

To test, view the OAI sets administration page and confirm that the "New
set" button looks correct and works correctly.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Comment: Works and looks nice. 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/oai_sets.tt

index bd5d54a..a480b74 100644 (file)
@@ -16,10 +16,6 @@ function delDescField(minusButton) {
     var li = $(minusButton).parent('li');
     $(li).remove();
 }
-
-$(document).ready(function() {
-    new YAHOO.widget.Button("newoaiset");
-});
 //]]>
 </script>
 </head>
@@ -72,10 +68,9 @@ $(document).ready(function() {
             </form>
         [% ELSE %]
 
-        <div id="toolbar">
-            <ul class="toolbar">
-            <li><a id="newoaiset" href="/cgi-bin/koha/admin/oai_sets.pl?op=new">New set</a></li>
-        </ul></div>
+        <div id="toolbar" class="btn-toolbar">
+            <a class="btn btn-small" id="newoaiset" href="/cgi-bin/koha/admin/oai_sets.pl?op=new"><i class="icon-plus"></i> New set</a>
+        </div>
 
         <h2>OAI sets</h2>
         [% IF sets_loop %]