Bug 9637 - Replace YUI button on local use system preferences page with Bootstrap
This patch converts the toolbar on the local use system preferences page to Bootstrap, replacing YUI button code with Bootstrap markup. To test, view the local use system preferences page (the "local use" tab on the main System preferences page) and confirm that the "New preference" button looks correct and works correctly. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Comment: Works and looks very 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> Removed incorrect Javascript comment about YUI.
This commit is contained in:
parent
21bd9d5ba7
commit
9c5796de72
1 changed files with 18 additions and 22 deletions
|
@ -70,8 +70,21 @@
|
|||
return false;
|
||||
} ).nextAll( 'textarea, input[type=submit]' ).hide();
|
||||
} );
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
[% IF ( else ) %]
|
||||
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
$(document).ready(function() {
|
||||
[% IF ( loop ) %]$("#sysprefst").tablesorter({
|
||||
sortList: [[0,0]],
|
||||
headers: { 1: {sorter:false},2: { sorter: false },3: { sorter: false },4: { sorter: false }}
|
||||
});[% END %]
|
||||
});
|
||||
</script>
|
||||
[% END %]
|
||||
</head>
|
||||
<body id="admin_systempreferences" class="admin">
|
||||
[% INCLUDE 'header.inc' %]
|
||||
|
@ -241,26 +254,9 @@
|
|||
|
||||
[% IF ( else ) %]
|
||||
|
||||
<div id="toolbar">
|
||||
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
// prepare DOM for YUI Toolbar
|
||||
$(document).ready(function() {
|
||||
yuiToolbar();
|
||||
[% IF ( loop ) %]$("#sysprefst").tablesorter({
|
||||
sortList: [[0,0]],
|
||||
headers: { 1: {sorter:false},2: { sorter: false },3: { sorter: false },4: { sorter: false }}
|
||||
});[% END %]
|
||||
});
|
||||
// YUI Toolbar Functions
|
||||
function yuiToolbar() {
|
||||
new YAHOO.widget.Button("newstopword");
|
||||
} //]]>
|
||||
</script>
|
||||
<ul class="toolbar">
|
||||
<li><a id="newstopword" href="[% script_name %]?op=add_form">New preference</a></li>
|
||||
</ul></div>
|
||||
<div id="toolbar" class="btn-toolbar">
|
||||
<a class="btn btn-small" id="newstopword" href="[% script_name %]?op=add_form"><i class="icon-plus"></i> New preference</a>
|
||||
</div>
|
||||
|
||||
<h1>System preferences admin</h1>
|
||||
<h2>[% tab %] preferences</h2>
|
||||
|
|
Loading…
Reference in a new issue