Bug 9642 - Replace YUI button on the patron attribute types page with Bootstrap

This patch converts the toolbar on the patron attributes administration
page to Bootstrap, replacing YUI button code with Bootstrap markup.

To test, view the patron attribute types administration page and confirm
that the "New patron attribute type" button looks correct and works
correctly.

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

Comment: Button looks and works 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>
This commit is contained in:
Owen Leonard 2013-02-03 08:14:10 -05:00 committed by Jared Camins-Esakov
parent 4ad8e4116f
commit 775ed7d0bc
1 changed files with 3 additions and 15 deletions

View File

@ -261,21 +261,9 @@ function CheckAttributeTypeForm(f) {
[% IF ( display_list ) %]
<div id="toolbar">
<script type="text/javascript">
//<![CDATA[
// prepare DOM for YUI Toolbar
$(document).ready(function() {
yuiToolbar();
});
// YUI Toolbar Functions
function yuiToolbar() {
new YAHOO.widget.Button("newrule");
} //]]>
</script>
<ul class="toolbar">
<li><a id="newrule" href="[% script_name %]?op=add_attribute_type">New patron attribute type</a></li>
</ul></div>
<div id="toolbar" class="btn-toolbar">
<a class="btn btn-small" id="newrule" href="[% script_name %]?op=add_attribute_type"><i class="icon-plus"></i> New patron attribute type</a>
</div>
<h2>Patron attribute types</h2>
[% IF ( added_attribute_type ) %]