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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-1 / +6 lines)
Lines 970-976 Link Here
970
970
971
                                        [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
971
                                        [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
972
                                        [% IF hold_cancellation %]
972
                                        [% IF hold_cancellation %]
973
                                            <select name="cancellation-reason">
973
                                            <select id="cancellation-reason" name="cancellation-reason">
974
                                                <option value="">No reason given</option>
974
                                                <option value="">No reason given</option>
975
                                                [% FOREACH reason IN hold_cancellation %]
975
                                                [% FOREACH reason IN hold_cancellation %]
976
                                                    <option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option>
976
                                                    <option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option>
Lines 1187-1192 Link Here
1187
                    }
1187
                    }
1188
                });
1188
                });
1189
            [% END %]
1189
            [% END %]
1190
            $("#cancellation-reason").on("change", function(e){
1191
                $("#cancellation-notify-patron").prop("disabled", $(this).val() == "");
1192
            });
1193
            $("#cancellation-reason").change();
1194
1190
        });
1195
        });
1191
    </script>
1196
    </script>
1192
    [% INCLUDE 'str/members-menu.inc' %]
1197
    [% INCLUDE 'str/members-menu.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt (+5 lines)
Lines 323-328 Link Here
323
                  holdst.fnFilter( $(this).val(), 10 );
323
                  holdst.fnFilter( $(this).val(), 10 );
324
              });
324
              });
325
          });
325
          });
326
327
          $("#cancellation-reason").on("change", function(e){
328
              $("#cancellation-notify-patron").prop("disabled", $(this).val() == "");
329
          });
330
          $("#cancellation-reason").change();
326
        });
331
        });
327
    </script>
332
    </script>
328
[% END %]
333
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-1 / +7 lines)
Lines 847-853 Link Here
847
                                            [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
847
                                            [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
848
                                            [% IF hold_cancellation %]
848
                                            [% IF hold_cancellation %]
849
                                                <label for="cancellation-reason">Cancellation reason:</label>
849
                                                <label for="cancellation-reason">Cancellation reason:</label>
850
                                                <select name="cancellation-reason">
850
                                                <select id="cancellation-reason" name="cancellation-reason">
851
                                                    <option value="">No reason given</option>
851
                                                    <option value="">No reason given</option>
852
                                                    [% FOREACH reason IN hold_cancellation %]
852
                                                    [% FOREACH reason IN hold_cancellation %]
853
                                                        <option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option>
853
                                                        <option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option>
Lines 998-1003 Link Here
998
                $("#picture-upload, #show-picture-upload").toggle();
998
                $("#picture-upload, #show-picture-upload").toggle();
999
            });
999
            });
1000
1000
1001
1002
            $("#cancellation-reason").on("change", function(e){
1003
                $("#cancellation-notify-patron").prop("disabled", $(this).val() == "");
1004
            });
1005
            $("#cancellation-reason").change();
1006
1001
         });
1007
         });
1002
        function uncheck_sibling(me){
1008
        function uncheck_sibling(me){
1003
            nodename=me.getAttribute("name");
1009
            nodename=me.getAttribute("name");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-2 / +6 lines)
Lines 1310-1316 Link Here
1310
                if ( reason ) {
1310
                if ( reason ) {
1311
                    link += "&amp;cancellation-reason=" + reason
1311
                    link += "&amp;cancellation-reason=" + reason
1312
                }
1312
                }
1313
                if ( notify ) {
1313
                if ( notify && reason != "" ) {
1314
                    link += "&amp;cancellation-notify-patron=1";
1314
                    link += "&amp;cancellation-notify-patron=1";
1315
                }
1315
                }
1316
                window.location.href = link;
1316
                window.location.href = link;
Lines 1357-1362 Link Here
1357
                stickTo: "#existing_holds",
1357
                stickTo: "#existing_holds",
1358
                stickyClass: "floating"
1358
                stickyClass: "floating"
1359
            });
1359
            });
1360
1361
            $("#modal-cancellation-reason").on("change", function(e){
1362
                $("#modal-cancellation-notify-patron").prop("disabled", $(this).val() == "");
1363
            });
1364
            $("#modal-cancellation-reason").change();
1360
        });
1365
        });
1361
    </script>
1366
    </script>
1362
[% END %]
1367
[% END %]
1363
- 

Return to bug 26282