mirror of https://gitee.com/karson/fastadmin.git
多表单没有限制搜索范围
parent
87710c0a18
commit
eae4e38845
|
|
@ -106,7 +106,7 @@ define(['jquery', 'bootstrap', 'upload', 'validator', 'validator-lang'], functio
|
|||
$('.selectpicker', form).selectpicker();
|
||||
$(form).on("reset", function () {
|
||||
setTimeout(function () {
|
||||
$('.selectpicker').selectpicker('refresh').trigger("change");
|
||||
$('.selectpicker', form).selectpicker('refresh').trigger("change");
|
||||
}, 1);
|
||||
});
|
||||
});
|
||||
|
|
@ -163,7 +163,7 @@ define(['jquery', 'bootstrap', 'upload', 'validator', 'validator-lang'], functio
|
|||
require(['citypicker'], function () {
|
||||
$(form).on("reset", function () {
|
||||
setTimeout(function () {
|
||||
$("[data-toggle='city-picker']").citypicker('refresh');
|
||||
$("[data-toggle='city-picker']", form).citypicker('refresh');
|
||||
}, 1);
|
||||
});
|
||||
});
|
||||
|
|
@ -517,10 +517,10 @@ define(['jquery', 'bootstrap', 'upload', 'validator', 'validator-lang'], functio
|
|||
tagsinput: function (form) {
|
||||
if ($("[data-role='tagsinput']", form).length > 0) {
|
||||
require(['tagsinput', 'autocomplete'], function () {
|
||||
$("[data-role='tagsinput']").tagsinput();
|
||||
$("[data-role='tagsinput']", form).tagsinput();
|
||||
form.on("reset", function () {
|
||||
setTimeout(function () {
|
||||
$("[data-role='tagsinput']").tagsinput('reset');
|
||||
$("[data-role='tagsinput']", form).tagsinput('reset');
|
||||
}, 0);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue