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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc (+4 lines)
Lines 173-178 $("#dateofbirth").datepicker({ Link Here
173
        yearRange: "c-100:c"
173
        yearRange: "c-100:c"
174
    });
174
    });
175
175
176
$("#suspend_until").datepicker({
177
    minDate: 1, // require that hold suspended until date is after today
178
});
179
176
    $( ".datepicker" ).datepicker({
180
    $( ".datepicker" ).datepicker({
177
        onClose: function(dateText, inst) {
181
        onClose: function(dateText, inst) {
178
            validate_date(dateText, inst);
182
            validate_date(dateText, inst);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-8 / +1 lines)
Lines 1098-1111 Link Here
1098
            $("#onsite_checkout").click(function(){
1098
            $("#onsite_checkout").click(function(){
1099
                toggle_onsite_checkout();
1099
                toggle_onsite_checkout();
1100
            });
1100
            });
1101
1101
         
1102
            $("#suspend_until").datepicker({
1103
                onClose: function(dateText, inst) {
1104
                    validate_date(dateText, inst);
1105
                },
1106
                minDate: 1, // require that hold suspended until date is after today
1107
            });
1108
1109
            [% IF HIGHHOLDS %]
1102
            [% IF HIGHHOLDS %]
1110
                [% IF !override_high_holds %]
1103
                [% IF !override_high_holds %]
1111
                    $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
1104
                    $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-9 lines)
Lines 903-916 Link Here
903
                "bPaginate": false
903
                "bPaginate": false
904
            }));
904
            }));
905
905
906
            $("#suspend_until").datepicker({
907
                onClose: function(dateText, inst) {
908
                    validate_date(dateText, inst);
909
                },
910
                minDate: 1, // require that hold suspended until date is after today
911
            }).on("change", function(e, value) {
912
                if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
913
            });
914
906
915
            $("#view_restrictions").on("click",function(){
907
            $("#view_restrictions").on("click",function(){
916
                $('#debarments-tab-link').click();
908
                $('#debarments-tab-link').click();
917
- 

Return to bug 23268