|
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 280-286
Link Here
|
| 280 |
|
280 |
|
| 281 |
[% MACRO jsinclude BLOCK %] |
281 |
[% MACRO jsinclude BLOCK %] |
| 282 |
[% INCLUDE 'datatables.inc' %] |
282 |
[% INCLUDE 'datatables.inc' %] |
| 283 |
[% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %] |
|
|
| 284 |
[% Asset.js("lib/jquery/plugins/multiple-select/multiple-select.min.js") | $raw %] |
283 |
[% Asset.js("lib/jquery/plugins/multiple-select/multiple-select.min.js") | $raw %] |
| 285 |
[% Asset.js( "lib/codemirror/codemirror.min.js" ) | $raw %] |
284 |
[% Asset.js( "lib/codemirror/codemirror.min.js" ) | $raw %] |
| 286 |
[% Asset.js( "lib/codemirror/css.min.js" ) | $raw %] |
285 |
[% Asset.js( "lib/codemirror/css.min.js" ) | $raw %] |
|
Lines 299-314
Link Here
|
| 299 |
[% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %] |
298 |
[% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %] |
| 300 |
|
299 |
|
| 301 |
<script> |
300 |
<script> |
| 302 |
var Sticky; |
|
|
| 303 |
var themelang = "[% themelang | html %]"; |
301 |
var themelang = "[% themelang | html %]"; |
| 304 |
$(document).ready(function(){ |
302 |
$(document).ready(function(){ |
| 305 |
[% UNLESS ( searchfield ) %] |
|
|
| 306 |
Sticky = $("#toolbar"); |
| 307 |
Sticky.hcSticky({ |
| 308 |
stickTo: "main", |
| 309 |
stickyClass: "floating" |
| 310 |
}); |
| 311 |
[% END %] |
| 312 |
$("select[multiple='multiple']").multipleSelect( { |
303 |
$("select[multiple='multiple']").multipleSelect( { |
| 313 |
placeholder: _("Please select ..."), |
304 |
placeholder: _("Please select ..."), |
| 314 |
selectAllText: _("Select all"), |
305 |
selectAllText: _("Select all"), |