mirror of https://gitee.com/karson/fastadmin.git
修复使用data-locale='{"format":"YYYY-MM-DD"}'方式配置daterangepicker时会丢失Custom Range、Apply、Clear国际化的问题
parent
887a381ff3
commit
d3d9a5a751
|
|
@ -208,7 +208,7 @@ define(['jquery', 'bootstrap', 'upload', 'validator'], function ($, undefined, U
|
||||||
$(this).on('cancel.daterangepicker', function (ev, picker) {
|
$(this).on('cancel.daterangepicker', function (ev, picker) {
|
||||||
$(this).val('').trigger('blur');
|
$(this).val('').trigger('blur');
|
||||||
});
|
});
|
||||||
$(this).daterangepicker($.extend({}, options, $(this).data()), callback);
|
$(this).daterangepicker($.extend(true, options, $(this).data()), callback);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue