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
$(".futuredate").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 (-9 / +2 lines)
Lines 925-931 Link Here
925
925
926
                                            [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
926
                                            [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
927
                                            <label for="suspend_until">until</label>
927
                                            <label for="suspend_until">until</label>
928
                                            <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/>
928
                                            <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker futuredate"/>
929
                                            <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
929
                                            <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
930
                                             [% END %]
930
                                             [% END %]
931
                                        </form>
931
                                        </form>
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 (-10 / +1 lines)
Lines 798-804 Link Here
798
798
799
                                                [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
799
                                                [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
800
                                                    <label for="suspend_until">until</label>
800
                                                    <label for="suspend_until">until</label>
801
                                                    <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/>
801
                                                    <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker futuredate"/>
802
                                                    <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
802
                                                    <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
803
                                                [% END %]
803
                                                [% END %]
804
                                            </fieldset>
804
                                            </fieldset>
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