|
Lines 361-372
Link Here
|
| 361 |
[% INCLUDE 'opac-bottom.inc' %] |
361 |
[% INCLUDE 'opac-bottom.inc' %] |
| 362 |
[% BLOCK jsinclude %] |
362 |
[% BLOCK jsinclude %] |
| 363 |
[% INCLUDE 'datatables.inc' %] |
363 |
[% INCLUDE 'datatables.inc' %] |
|
|
364 |
<script> |
| 365 |
addPrefs({ |
| 366 |
PhoneNotification: [% Koha.Preference('PhoneNotification') ? 1 : 0 | html %], |
| 367 |
TalkingTechItivaPhoneNotification: [% Koha.Preference('TalkingTechItivaPhoneNotification') ? 1 : 0 | html %], |
| 368 |
OPACTableColExpandedByDefault: [% Koha.Preference('OPACTableColExpandedByDefault') ? 1 : 0 | html %], |
| 369 |
}); |
| 370 |
</script> |
| 371 |
|
| 364 |
<script> |
372 |
<script> |
| 365 |
$(document).ready(function(){ |
373 |
$(document).ready(function(){ |
| 366 |
function toggle_digest(id){ |
374 |
function toggle_digest(id){ |
| 367 |
let PhoneNotification = [% Koha.Preference('PhoneNotification') || 0 | html %]; |
375 |
let phone_checked = prefs.TalkingTechItivaPhoneNotification ? false : prefs.PhoneNotification ? $("#phone"+id).prop("checked") : false; |
| 368 |
let TalkingTechItivaPhoneNotification = [% Koha.Preference('TalkingTechItivaPhoneNotification') || 0 | html %]; |
|
|
| 369 |
let phone_checked = TalkingTechItivaPhoneNotification ? false : PhoneNotification ? $("#phone"+id).prop("checked") : false; |
| 370 |
|
376 |
|
| 371 |
if ( $("#email"+id).prop("checked") || $("#sms"+id).prop("checked") || phone_checked ) { |
377 |
if ( $("#email"+id).prop("checked") || $("#sms"+id).prop("checked") || phone_checked ) { |
| 372 |
$("#digest"+id).attr("disabled", false).tooltip('disable'); |
378 |
$("#digest"+id).attr("disabled", false).tooltip('disable'); |
|
Lines 416-427
Link Here
|
| 416 |
}); |
422 |
}); |
| 417 |
} |
423 |
} |
| 418 |
|
424 |
|
| 419 |
[% IF ( Koha.Preference('OPACTableColExpandedByDefault') ) %] |
425 |
var responsive_display = prefs.OPACTableColExpandedByDefault ? DataTable.Responsive.display.childRowImmediate : DataTable.Responsive.display.childRow; |
| 420 |
var responsive_display = DataTable.Responsive.display.childRowImmediate; |
|
|
| 421 |
[% ELSE %] |
| 422 |
var responsive_display = DataTable.Responsive.display.childRow; |
| 423 |
[% END %] |
| 424 |
|
| 425 |
$(".table").kohaTable({ |
426 |
$(".table").kohaTable({ |
| 426 |
searching: false, |
427 |
searching: false, |
| 427 |
paging: false, |
428 |
paging: false, |
| 428 |
- |
|
|