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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt (-1 / +1 lines)
Lines 157-163 Link Here
157
                            </li>
157
                            </li>
158
                            <li>
158
                            <li>
159
                                <label for="enrolmentperioddate">Until date: </label>
159
                                <label for="enrolmentperioddate">Until date: </label>
160
                                <input type="text" class="enrollmentperiod" name="enrolmentperioddate" id="enrolmentperioddate" value="[% category.enrolmentperioddate | $KohaDates %]" />
160
                                <input type="text" class="enrollmentperiod flatpickr" data-flatpickr-futuredate="true" name="enrolmentperioddate" id="enrolmentperioddate" value="[% category.enrolmentperioddate | $KohaDates %]" />
161
                            </li>
161
                            </li>
162
                        </ol>
162
                        </ol>
163
                    </fieldset>
163
                    </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-1 / +1 lines)
Lines 857-863 Link Here
857
    [% INCLUDE 'datatables.inc' %]
857
    [% INCLUDE 'datatables.inc' %]
858
    [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
858
    [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
859
    [% INCLUDE 'columns_settings.inc' %]
859
    [% INCLUDE 'columns_settings.inc' %]
860
    [% INCLUDE 'calendar.inc' %]
861
    [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
860
    [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
862
    [% INCLUDE 'timepicker.inc' %]
861
    [% INCLUDE 'timepicker.inc' %]
863
    [% INCLUDE 'select2.inc' %]
862
    [% INCLUDE 'select2.inc' %]
Lines 887-892 Link Here
887
    [% Asset.js("js/pages/circulation.js") | $raw %]
886
    [% Asset.js("js/pages/circulation.js") | $raw %]
888
    [% Asset.js("js/checkouts.js") | $raw %]
887
    [% Asset.js("js/checkouts.js") | $raw %]
889
    [% Asset.js("js/holds.js") | $raw %]
888
    [% Asset.js("js/holds.js") | $raw %]
889
    [% INCLUDE 'calendar.inc' %]
890
    [% INCLUDE 'str/members-menu.inc' %]
890
    [% INCLUDE 'str/members-menu.inc' %]
891
    [% Asset.js("js/members-menu.js") | $raw %]
891
    [% Asset.js("js/members-menu.js") | $raw %]
892
    <script>
892
    <script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-1 / +1 lines)
Lines 1130-1141 Link Here
1130
1130
1131
[% MACRO jsinclude BLOCK %]
1131
[% MACRO jsinclude BLOCK %]
1132
    [% INCLUDE 'datatables.inc' %]
1132
    [% INCLUDE 'datatables.inc' %]
1133
    [% INCLUDE 'calendar.inc' %]
1134
    [% INCLUDE 'columns_settings.inc' %]
1133
    [% INCLUDE 'columns_settings.inc' %]
1135
    [% Asset.js("lib/hc-sticky.js") | $raw %]
1134
    [% Asset.js("lib/hc-sticky.js") | $raw %]
1136
    [% Asset.js("js/circ-patron-search-results.js") | $raw %]
1135
    [% Asset.js("js/circ-patron-search-results.js") | $raw %]
1137
    [% INCLUDE 'select2.inc' %]
1136
    [% INCLUDE 'select2.inc' %]
1138
    [% Asset.js("js/holds.js") | $raw%]
1137
    [% Asset.js("js/holds.js") | $raw%]
1138
    [% INCLUDE 'calendar.inc' %]
1139
    <script>
1139
    <script>
1140
        var Sticky;
1140
        var Sticky;
1141
        var biblionumber = "[% biblionumber | $raw %]";
1141
        var biblionumber = "[% biblionumber | $raw %]";
(-)a/koha-tmpl/intranet-tmpl/prog/js/categories.js (-4 lines)
Lines 38-47 $(document).ready(function() { Link Here
38
        "exportColumns": [0,1,2,3,4,5,6,7,8,9,10,11,12],
38
        "exportColumns": [0,1,2,3,4,5,6,7,8,9,10,11,12],
39
    }, columns_settings);
39
    }, columns_settings);
40
40
41
    $("#enrolmentperioddate").flatpickr({
42
        minDate: new Date().fp_incr(1)
43
    });
44
45
    if ($("#branches option:selected").length < 1) {
41
    if ($("#branches option:selected").length < 1) {
46
        $("#branches option:first").attr("selected", "selected");
42
        $("#branches option:first").attr("selected", "selected");
47
    }
43
    }
(-)a/koha-tmpl/intranet-tmpl/prog/js/holds.js (-5 / +1 lines)
Lines 384-390 $(document).ready(function() { Link Here
384
                    <input type='hidden' id='suspend-modal-reserve_id' name='reserve_id' />\
384
                    <input type='hidden' id='suspend-modal-reserve_id' name='reserve_id' />\
385
\
385
\
386
                    <label for='suspend-modal-until'>" + __("Suspend until:") + "</label>\
386
                    <label for='suspend-modal-until'>" + __("Suspend until:") + "</label>\
387
                    <input name='suspend_until' id='suspend-modal-until' class='suspend-until' size='10' />\
387
                    <input name='suspend_until' id='suspend-modal-until' class='suspend-until flatpickr' data-flatpickr-futuredate='true' size='10' />\
388
\
388
\
389
                    <p><a class='btn btn-link' id='suspend-modal-clear-date' >" + __("Clear date to suspend indefinitely") + "</a></p>\
389
                    <p><a class='btn btn-link' id='suspend-modal-clear-date' >" + __("Clear date to suspend indefinitely") + "</a></p>\
390
\
390
\
Lines 400-408 $(document).ready(function() { Link Here
400
        </div>\
400
        </div>\
401
    ");
401
    ");
402
402
403
    $("#suspend-modal-until").flatpickr({
404
        minDate: new Date().fp_incr(1) // Require that "until date" be in the future
405
    });
406
    $("#suspend-modal-clear-date").on( "click", function() { $("#suspend-modal-until").val(""); } );
403
    $("#suspend-modal-clear-date").on( "click", function() { $("#suspend-modal-until").val(""); } );
407
404
408
    $("#suspend-modal-submit").on( "click", function( e ) {
405
    $("#suspend-modal-submit").on( "click", function( e ) {
409
- 

Return to bug 29735