View | Details | Raw Unified | Return to bug 41582
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt (-4 / +8 lines)
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
        });
369
    </script>
370
364
    <script>
371
    <script>
365
        $(document).ready(function(){
372
        $(document).ready(function(){
366
            function toggle_digest(id){
373
            function toggle_digest(id){
367
                let PhoneNotification = [% Koha.Preference('PhoneNotification') || 0 | html %];
374
                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
375
371
                if ( $("#email"+id).prop("checked") || $("#sms"+id).prop("checked") || phone_checked ) {
376
                if ( $("#email"+id).prop("checked") || $("#sms"+id).prop("checked") || phone_checked ) {
372
                    $("#digest"+id).attr("disabled", false).tooltip('disable');
377
                    $("#digest"+id).attr("disabled", false).tooltip('disable');
373
- 

Return to bug 41582