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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/discrete_calendar.tt (-5 / +5 lines)
Lines 285-303 Link Here
285
        minDate: new Date("[% minDate %]"),
285
        minDate: new Date("[% minDate %]"),
286
        maxDate: new Date("[% maxDate %]")
286
        maxDate: new Date("[% maxDate %]")
287
        });
287
        });
288
        $("#from_copyToDatePicker").change(function(){
288
        $('#from_copyFromDatePicker').datepicker();
289
            checkRange($(this).datepicker("getDate"));
290
        });
291
292
        $("#from_copyFromDatePicker").change(function(){
289
        $("#from_copyFromDatePicker").change(function(){
293
            $('#from_copyFrom').val(getSeparetedDate($(this).datepicker("getDate")).dateString);
290
            $('#from_copyFrom').val(getSeparetedDate($(this).datepicker("getDate")).dateString);
294
        });
291
        });
292
        $('#from_copyToDatePicker').datepicker();
295
        $("#from_copyToDatePicker").change(function(){
293
        $("#from_copyToDatePicker").change(function(){
294
            checkRange($(this).datepicker("getDate"));
296
            $('#from_copyTo').val(getSeparetedDate($(this).datepicker("getDate")).dateString);
295
            $('#from_copyTo').val(getSeparetedDate($(this).datepicker("getDate")).dateString);
297
        });
296
        });
297
        $('#to_copyFromDatePicker').datepicker();
298
        $("#to_copyFromDatePicker").change(function(){
298
        $("#to_copyFromDatePicker").change(function(){
299
            $('#to_copyFrom').val(getSeparetedDate($(this).datepicker("getDate")).dateString);
299
            $('#to_copyFrom').val(getSeparetedDate($(this).datepicker("getDate")).dateString);
300
        });
300
        });
301
        $('#to_copyToDatePicker').datepicker();
301
        $("#to_copyToDatePicker").change(function(){
302
        $("#to_copyToDatePicker").change(function(){
302
            $('#to_copyTo').val(getSeparetedDate($(this).datepicker("getDate")).dateString);
303
            $('#to_copyTo').val(getSeparetedDate($(this).datepicker("getDate")).dateString);
303
        });
304
        });
304
- 

Return to bug 17015