Bug 41582: Tidy kohaTable - opac-messaging.tt
Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
922bad7798
commit
56ce976f76
|
|
@ -361,12 +361,18 @@
|
|||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script>
|
||||
addPrefs({
|
||||
PhoneNotification: [% Koha.Preference('PhoneNotification') ? 1 : 0 | html %],
|
||||
TalkingTechItivaPhoneNotification: [% Koha.Preference('TalkingTechItivaPhoneNotification') ? 1 : 0 | html %],
|
||||
OPACTableColExpandedByDefault: [% Koha.Preference('OPACTableColExpandedByDefault') ? 1 : 0 | html %],
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
function toggle_digest(id){
|
||||
let PhoneNotification = [% Koha.Preference('PhoneNotification') || 0 | html %];
|
||||
let TalkingTechItivaPhoneNotification = [% Koha.Preference('TalkingTechItivaPhoneNotification') || 0 | html %];
|
||||
let phone_checked = TalkingTechItivaPhoneNotification ? false : PhoneNotification ? $("#phone"+id).prop("checked") : false;
|
||||
let phone_checked = prefs.TalkingTechItivaPhoneNotification ? false : prefs.PhoneNotification ? $("#phone"+id).prop("checked") : false;
|
||||
|
||||
if ( $("#email"+id).prop("checked") || $("#sms"+id).prop("checked") || phone_checked ) {
|
||||
$("#digest"+id).attr("disabled", false).tooltip('disable');
|
||||
|
|
@ -416,12 +422,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
[% IF ( Koha.Preference('OPACTableColExpandedByDefault') ) %]
|
||||
var responsive_display = DataTable.Responsive.display.childRowImmediate;
|
||||
[% ELSE %]
|
||||
var responsive_display = DataTable.Responsive.display.childRow;
|
||||
[% END %]
|
||||
|
||||
var responsive_display = prefs.OPACTableColExpandedByDefault ? DataTable.Responsive.display.childRowImmediate : DataTable.Responsive.display.childRow;
|
||||
$(".table").kohaTable({
|
||||
searching: false,
|
||||
paging: false,
|
||||
|
|
|
|||
Loading…
Reference in New Issue