Bug 9631 - Replace YUI buttons on classification sources administration page with Bootstrap

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.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>

Comment: Works as described. Change "rules" to singular.
No errors.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works nicely, no problems found.

http://bugs.koha-community.org/show_bug.cgi?id=9613
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
Owen Leonard 2013-02-02 18:49:52 -05:00 committed by Jared Camins-Esakov
parent 77572c15ce
commit c4631937f3

View file

@ -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 rule</a>
</div>
<h2>Classification sources</h2>
[% IF ( added_source ) %]