mirror of https://gitee.com/karson/fastadmin.git
Fix:修改commonsearch中使用SelectPage可能存在的问题
* 1、点击“重置”按钮,SelectPage无法恢复初始搜索值 * 2、点击“重置”按钮,SelectPage需要点击两次才能返回执行默认条件搜索,第一次点击时恢复初始搜索值,第二次点击才会执行搜索 Signed-off-by: Jason <18610599620@163.com>pull/467/head
parent
ac25e4b275
commit
a811bacb4a
|
|
@ -40,7 +40,7 @@
|
||||||
// 重置搜索
|
// 重置搜索
|
||||||
form.on("click", "button[type=reset]", function (event) {
|
form.on("click", "button[type=reset]", function (event) {
|
||||||
form[0].reset();
|
form[0].reset();
|
||||||
|
$('.selectpage', form[0]).selectPageClear();
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
that.onCommonSearch();
|
that.onCommonSearch();
|
||||||
}, 1);
|
}, 1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue