Bug 9619 - Replace YUI buttons on libraries administration page with Bootstrap
This patch converts the toolbar used by libraries administration to Bootstrap, replacing YUI button and menu code with Bootstrap markup. To test, view any the branches administration page and confirm that the buttons to add a library and add a category look correct and work correctly. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Comment: Both buttons, Library and Group, works and look well. 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
5690031777
commit
fc394a3e05
1 changed files with 4 additions and 27 deletions
|
@ -58,33 +58,10 @@ tinyMCE.init({
|
|||
<div id="yui-main">
|
||||
<div class="yui-b">
|
||||
[% IF ( else ) %]
|
||||
<div id="toolbar">
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
||||
// prepare DOM for YUI Toolbar
|
||||
|
||||
$(document).ready(function() {
|
||||
yuiToolbar();
|
||||
$.tablesorter.defaults.widgets = ['zebra'];
|
||||
$("#branchest").tablesorter({
|
||||
sortList: [[0,0]],
|
||||
headers: { 3:{sorter:false},4:{sorter:false},5:{sorter:false},6:{sorter:false}}
|
||||
}).tablesorterPager({container: $("#pagerbranchest"),positionFixed: false,size: 10});
|
||||
});
|
||||
// YUI Toolbar Functions
|
||||
|
||||
function yuiToolbar() {
|
||||
new YAHOO.widget.Button("newbranch");
|
||||
new YAHOO.widget.Button("newcategory");
|
||||
}
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
<ul class="toolbar">
|
||||
<li><a id="newbranch" href="/cgi-bin/koha/admin/branches.pl?op=add">New library</a></li>
|
||||
<li><a id="newcategory" href="/cgi-bin/koha/admin/branches.pl?op=editcategory">New group</a></li>
|
||||
</ul></div>
|
||||
<div id="toolbar" class="btn-toolbar">
|
||||
<a class="btn btn-small" id="newbranch" href="/cgi-bin/koha/admin/branches.pl?op=add"><i class="icon-plus"></i> New library</a>
|
||||
<a class="btn btn-small" id="newcategory" href="/cgi-bin/koha/admin/branches.pl?op=editcategory"><i class="icon-plus"></i> New group</a>
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
[% IF ( add ) %]
|
||||
|
|
Loading…
Reference in a new issue