mirror of https://gitee.com/karson/fastadmin.git
修复ajax按钮先刷新后执行操作的bug
parent
9e3f1ccf42
commit
c15be9773e
|
|
@ -195,7 +195,9 @@ define(['fast', 'template', 'moment'], function (Fast, Template, Moment) {
|
||||||
}
|
}
|
||||||
//如果未设备成功的回调,设定了自动刷新的情况下自动进行刷新
|
//如果未设备成功的回调,设定了自动刷新的情况下自动进行刷新
|
||||||
if (!success && typeof options.tableId !== 'undefined' && typeof options.refresh !== 'undefined' && options.refresh) {
|
if (!success && typeof options.tableId !== 'undefined' && typeof options.refresh !== 'undefined' && options.refresh) {
|
||||||
$("#" + options.tableId).bootstrapTable('refresh');
|
success = function () {
|
||||||
|
$("#" + options.tableId).bootstrapTable('refresh');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (typeof options.confirm !== 'undefined') {
|
if (typeof options.confirm !== 'undefined') {
|
||||||
Layer.confirm(options.confirm, function (index) {
|
Layer.confirm(options.confirm, function (index) {
|
||||||
|
|
|
||||||
|
|
@ -5421,7 +5421,9 @@ define('backend',['fast', 'template', 'moment'], function (Fast, Template, Momen
|
||||||
}
|
}
|
||||||
//如果未设备成功的回调,设定了自动刷新的情况下自动进行刷新
|
//如果未设备成功的回调,设定了自动刷新的情况下自动进行刷新
|
||||||
if (!success && typeof options.tableId !== 'undefined' && typeof options.refresh !== 'undefined' && options.refresh) {
|
if (!success && typeof options.tableId !== 'undefined' && typeof options.refresh !== 'undefined' && options.refresh) {
|
||||||
$("#" + options.tableId).bootstrapTable('refresh');
|
success = function () {
|
||||||
|
$("#" + options.tableId).bootstrapTable('refresh');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (typeof options.confirm !== 'undefined') {
|
if (typeof options.confirm !== 'undefined') {
|
||||||
Layer.confirm(options.confirm, function (index) {
|
Layer.confirm(options.confirm, function (index) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue