This patch converts the toolbar on the class sources administration page
to Bootstrap, replacing YUI button code with Bootstrap markup.
To test, view the class sources administration page. Buttons should look
correct and work correctly.
---
.../prog/en/modules/admin/classsources.tt | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt
b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt
index 21eb0ea..e9ba27a 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt
@@ -64,12 +64,6 @@ function CheckRuleForm(f) {
alert(alertString2);
}
}
-
-$(document).ready(function() {
- new YAHOO.widget.Button("newsource");
- new YAHOO.widget.Button("newrule");
-});
-
//]]>
</script>
</head>
@@ -232,11 +226,10 @@ $(document).ready(function() {
[% IF ( display_lists ) %]
-<div id="toolbar">
- <ul class="toolbar">
- <li><a id="newsource" href="[% script_name %]?op=add_source">New
classification source</a></li>
- <li><a id="newrule" href="[% script_name %]?op=add_sort_rule">New filing
rules</a></li>
-</ul></div>
+<div id="toolbar" class="btn-toolbar">
+ <a class="btn btn-small" id="newsource" href="[% script_name
%]?op=add_source"><i class="icon-plus"></i> New classification source</a>
+ <a class="btn btn-small" id="newrule" href="[% script_name
%]?op=add_sort_rule"><i class="icon-plus"></i> New filing rules</a>
+</div>
<h2>Classification sources</h2>
[% IF ( added_source ) %]
--
1.7.9.5
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/