0.0.54 p search res
This commit is contained in:
@@ -44,7 +44,7 @@ function daterangepickerInit(el, callback, date) {
|
||||
$($datarangepicker).daterangepicker({
|
||||
"autoapply": true,
|
||||
"linkedCalendars": false,
|
||||
"singleDatePicker": true,
|
||||
"singleDatePicker": !!el.dataset.range,
|
||||
"timePicker": false,
|
||||
"timePicker24Hour": false,
|
||||
"minDate": moment(date),
|
||||
@@ -57,6 +57,7 @@ function daterangepickerInit(el, callback, date) {
|
||||
if (last_opened_daterangepicker) $parent = last_opened_daterangepicker.closest('.w_daterangepicker');
|
||||
let $input = $parent.querySelector(".date_range_input_cont input")
|
||||
$input.value = start.format('DD.MM.YYYY');
|
||||
if (end) $input.value = `${start.format('DD.MM.YYYY')} - ${end.format('DD.MM.YYYY')}`
|
||||
resetFieldError(el);
|
||||
if (callback) callback(el)
|
||||
});
|
||||
@@ -68,3 +69,6 @@ function clickOnDateIconE(el){
|
||||
$input.focus()
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
datarangepickerinitAll()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user