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 176-181 $("#dateofbirth").datepicker({ Link Here
176
        yearRange: "c-100:c"
176
        yearRange: "c-100:c"
177
    });
177
    });
178
178
179
    $(".futuredate").datepicker({
180
        minDate: 1, // require that hold suspended until date is after today
181
    });
182
179
    $( ".datepicker" ).datepicker({
183
    $( ".datepicker" ).datepicker({
180
        onClose: function(dateText, inst) {
184
        onClose: function(dateText, inst) {
181
            validate_date(dateText, inst);
185
            validate_date(dateText, inst);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-9 / +2 lines)
Lines 941-947 Link Here
941
941
942
                                            [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
942
                                            [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
943
                                            <label for="suspend_until">until</label>
943
                                            <label for="suspend_until">until</label>
944
                                            <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/>
944
                                            <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker futuredate"/>
945
                                            <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
945
                                            <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
946
                                             [% END %]
946
                                             [% END %]
947
                                        </form>
947
                                        </form>
Lines 1122-1135 Link Here
1122
            $("#onsite_checkout").click(function(){
1122
            $("#onsite_checkout").click(function(){
1123
                toggle_onsite_checkout();
1123
                toggle_onsite_checkout();
1124
            });
1124
            });
1125
1125
         
1126
            $("#suspend_until").datepicker({
1127
                onClose: function(dateText, inst) {
1128
                    validate_date(dateText, inst);
1129
                },
1130
                minDate: 1, // require that hold suspended until date is after today
1131
            });
1132
1133
            [% IF HIGHHOLDS %]
1126
            [% IF HIGHHOLDS %]
1134
                [% IF !override_high_holds %]
1127
                [% IF !override_high_holds %]
1135
                    $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
1128
                    $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-10 / +1 lines)
Lines 812-818 Link Here
812
812
813
                                                [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
813
                                                [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
814
                                                    <label for="suspend_until">until</label>
814
                                                    <label for="suspend_until">until</label>
815
                                                    <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/>
815
                                                    <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker futuredate"/>
816
                                                    <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
816
                                                    <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
817
                                                [% END %]
817
                                                [% END %]
818
                                            </fieldset>
818
                                            </fieldset>
Lines 927-940 Link Here
927
                "bPaginate": false
927
                "bPaginate": false
928
            }));
928
            }));
929
929
930
            $("#suspend_until").datepicker({
931
                onClose: function(dateText, inst) {
932
                    validate_date(dateText, inst);
933
                },
934
                minDate: 1, // require that hold suspended until date is after today
935
            }).on("change", function(e, value) {
936
                if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
937
            });
938
930
939
            $("#view_restrictions").on("click",function(){
931
            $("#view_restrictions").on("click",function(){
940
                $('#debarments-tab-link').click();
932
                $('#debarments-tab-link').click();
941
- 

Return to bug 23268