!509 多表单没有限制搜索范围

Merge pull request !509 from 御宅男(YznCMS官方)/Branch_f804c8a6
pull/510/head
Karson 2025-08-20 02:07:28 +00:00 committed by Gitee
commit ae89ff37a3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 4 additions and 4 deletions

View File

@ -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);
});
});