Lines 60-66
Link Here
|
60 |
<h2>[% TAB.tab_title | html %] preferences</h2> |
60 |
<h2>[% TAB.tab_title | html %] preferences</h2> |
61 |
<form action="/cgi-bin/koha/admin/preferences.pl" method="post"> |
61 |
<form action="/cgi-bin/koha/admin/preferences.pl" method="post"> |
62 |
[% INCLUDE 'csrf-token.inc' %] |
62 |
[% INCLUDE 'csrf-token.inc' %] |
63 |
[% UNLESS ( searchfield ) %]<div id="toolbar"><button class="save-all btn btn-primary" type="submit">Save all [% TAB.tab_title | html %] preferences</button></div>[% END %] |
63 |
[% UNLESS ( searchfield ) %]<div id="toolbar" class="sticky"><button class="save-all btn btn-primary" type="submit">Save all [% TAB.tab_title | html %] preferences</button></div>[% END %] |
64 |
<input type="hidden" name="op" value="cud-save" /> |
64 |
<input type="hidden" name="op" value="cud-save" /> |
65 |
<input type="hidden" name="tab" value="[% TAB.tab_id | html %]" /> |
65 |
<input type="hidden" name="tab" value="[% TAB.tab_id | html %]" /> |
66 |
|
66 |
|
Lines 277-283
Link Here
|
277 |
|
277 |
|
278 |
[% MACRO jsinclude BLOCK %] |
278 |
[% MACRO jsinclude BLOCK %] |
279 |
[% INCLUDE 'datatables.inc' %] |
279 |
[% INCLUDE 'datatables.inc' %] |
280 |
[% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %] |
|
|
281 |
[% Asset.js("lib/jquery/plugins/multiple-select/multiple-select.min.js") | $raw %] |
280 |
[% Asset.js("lib/jquery/plugins/multiple-select/multiple-select.min.js") | $raw %] |
282 |
[% Asset.js( "lib/codemirror/codemirror.min.js" ) | $raw %] |
281 |
[% Asset.js( "lib/codemirror/codemirror.min.js" ) | $raw %] |
283 |
[% Asset.js( "lib/codemirror/css.min.js" ) | $raw %] |
282 |
[% Asset.js( "lib/codemirror/css.min.js" ) | $raw %] |
Lines 296-311
Link Here
|
296 |
[% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %] |
295 |
[% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %] |
297 |
|
296 |
|
298 |
<script> |
297 |
<script> |
299 |
var Sticky; |
|
|
300 |
var themelang = "[% themelang | html %]"; |
298 |
var themelang = "[% themelang | html %]"; |
301 |
$(document).ready(function(){ |
299 |
$(document).ready(function(){ |
302 |
[% UNLESS ( searchfield ) %] |
|
|
303 |
Sticky = $("#toolbar"); |
304 |
Sticky.hcSticky({ |
305 |
stickTo: "main", |
306 |
stickyClass: "floating" |
307 |
}); |
308 |
[% END %] |
309 |
$("select[multiple='multiple']").multipleSelect( { |
300 |
$("select[multiple='multiple']").multipleSelect( { |
310 |
placeholder: _("Please select ..."), |
301 |
placeholder: _("Please select ..."), |
311 |
selectAllText: _("Select all"), |
302 |
selectAllText: _("Select all"), |