|
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 266-272
Link Here
|
| 266 |
|
266 |
|
| 267 |
[% MACRO jsinclude BLOCK %] |
267 |
[% MACRO jsinclude BLOCK %] |
| 268 |
[% INCLUDE 'datatables.inc' %] |
268 |
[% INCLUDE 'datatables.inc' %] |
| 269 |
[% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %] |
|
|
| 270 |
[% Asset.js("lib/jquery/plugins/multiple-select/multiple-select.min.js") | $raw %] |
269 |
[% Asset.js("lib/jquery/plugins/multiple-select/multiple-select.min.js") | $raw %] |
| 271 |
[% Asset.js( "lib/codemirror/codemirror.min.js" ) | $raw %] |
270 |
[% Asset.js( "lib/codemirror/codemirror.min.js" ) | $raw %] |
| 272 |
[% Asset.js( "lib/codemirror/css.min.js" ) | $raw %] |
271 |
[% Asset.js( "lib/codemirror/css.min.js" ) | $raw %] |
|
Lines 285-300
Link Here
|
| 285 |
[% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %] |
284 |
[% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %] |
| 286 |
|
285 |
|
| 287 |
<script> |
286 |
<script> |
| 288 |
var Sticky; |
|
|
| 289 |
var themelang = "[% themelang | html %]"; |
287 |
var themelang = "[% themelang | html %]"; |
| 290 |
$(document).ready(function(){ |
288 |
$(document).ready(function(){ |
| 291 |
[% UNLESS ( searchfield ) %] |
|
|
| 292 |
Sticky = $("#toolbar"); |
| 293 |
Sticky.hcSticky({ |
| 294 |
stickTo: "main", |
| 295 |
stickyClass: "floating" |
| 296 |
}); |
| 297 |
[% END %] |
| 298 |
$("select[multiple='multiple']").multipleSelect( { |
289 |
$("select[multiple='multiple']").multipleSelect( { |
| 299 |
placeholder: _("Please select ..."), |
290 |
placeholder: _("Please select ..."), |
| 300 |
selectAllText: _("Select all"), |
291 |
selectAllText: _("Select all"), |