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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-1 / +16 lines)
Lines 1256-1261 Link Here
1256
        var LABEL_SET_TO_PATRON = _("Set to patron");
1256
        var LABEL_SET_TO_PATRON = _("Set to patron");
1257
        var LABEL_AGE = _("Age");
1257
        var LABEL_AGE = _("Age");
1258
        var MSG_MESSAGING_DFEAULTS = _("Change messaging preferences to default for this category?");
1258
        var MSG_MESSAGING_DFEAULTS = _("Change messaging preferences to default for this category?");
1259
        var MSG_PATRON_MODIFIED = _("You made some modification, are you sure you want to leave this page?");
1259
1260
1260
        [% IF quickadd && opadd  && !check_member %]
1261
        [% IF quickadd && opadd  && !check_member %]
1261
            $(document).ready(function () {
1262
            $(document).ready(function () {
Lines 1290-1295 Link Here
1290
            });
1291
            });
1291
        [% END %]
1292
        [% END %]
1292
1293
1294
        $(document).ready(function () {
1295
            $("#entryform :input").change(function() {
1296
                $("#entryform").data("modified", true);
1297
            });
1298
1299
            $("#entryform").submit(function(){
1300
                $(this).data("modified",false);
1301
            });
1302
1303
            window.onbeforeunload = function (e) {
1304
                if ($("#entryform").data("modified")) {
1305
                    return MSG_PATRON_MODIFIED;
1306
                }
1307
            };
1308
        });
1293
    </script>
1309
    </script>
1294
    [% Asset.js("js/members.js") | $raw %]
1310
    [% Asset.js("js/members.js") | $raw %]
1295
    [% Asset.js("js/messaging-preference-form.js") | $raw %]
1311
    [% Asset.js("js/messaging-preference-form.js") | $raw %]
1296
- 

Return to bug 23100