修复使用data-locale='{"format":"YYYY-MM-DD"}'方式配置daterangepicker时会丢失Custom Range、Apply、Clear国际化的问题
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -208,7 +208,7 @@ define(['jquery', 'bootstrap', 'upload', 'validator'], function ($, undefined, U | @@ -208,7 +208,7 @@ define(['jquery', 'bootstrap', 'upload', 'validator'], function ($, undefined, U | ||
208 | $(this).on('cancel.daterangepicker', function (ev, picker) { | 208 | $(this).on('cancel.daterangepicker', function (ev, picker) { |
209 | $(this).val('').trigger('blur'); | 209 | $(this).val('').trigger('blur'); |
210 | }); | 210 | }); |
211 | - $(this).daterangepicker($.extend({}, options, $(this).data()), callback); | 211 | + $(this).daterangepicker($.extend(true, options, $(this).data()), callback); |
212 | }); | 212 | }); |
213 | }); | 213 | }); |
214 | } | 214 | } |
-
请 注册 或 登录 后发表评论