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:
parent
4ad8e4116f
commit
775ed7d0bc
|
|
@ -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 ) %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue