mirror of https://gitee.com/karson/fastadmin.git
点击表格删除按钮后 LAYER 弹出层 确定取消 按钮的 多语言版本 修改
parent
dba3ca50fc
commit
289e9306bd
|
|
@ -396,7 +396,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
|
||||||
var ids = Table.api.selectedids(table);
|
var ids = Table.api.selectedids(table);
|
||||||
Layer.confirm(
|
Layer.confirm(
|
||||||
__('Are you sure you want to delete the %s selected item?', ids.length),
|
__('Are you sure you want to delete the %s selected item?', ids.length),
|
||||||
{icon: 3, title: __('Warning'), offset: 0, shadeClose: true},
|
{icon: 3, title: __('Warning'), offset: 0, shadeClose: true, btn: [__('OK'), __('Cancel')]},
|
||||||
function (index) {
|
function (index) {
|
||||||
Table.api.multi("del", ids, table, that);
|
Table.api.multi("del", ids, table, that);
|
||||||
Layer.close(index);
|
Layer.close(index);
|
||||||
|
|
@ -485,7 +485,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
|
||||||
var that = this;
|
var that = this;
|
||||||
Layer.confirm(
|
Layer.confirm(
|
||||||
__('Are you sure you want to delete this item?'),
|
__('Are you sure you want to delete this item?'),
|
||||||
{icon: 3, title: __('Warning'), shadeClose: true},
|
{icon: 3, title: __('Warning'), shadeClose: true, btn: [__('OK'), __('Cancel')]},
|
||||||
function (index) {
|
function (index) {
|
||||||
Table.api.multi("del", id, table, that);
|
Table.api.multi("del", id, table, that);
|
||||||
Layer.close(index);
|
Layer.close(index);
|
||||||
|
|
@ -588,7 +588,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
|
||||||
}
|
}
|
||||||
Layer.confirm(
|
Layer.confirm(
|
||||||
__('Are you sure you want to delete this item?'),
|
__('Are you sure you want to delete this item?'),
|
||||||
{icon: 3, title: __('Warning'), offset: [top, left], shadeClose: true},
|
{icon: 3, title: __('Warning'), offset: [top, left], shadeClose: true, btn: [__('OK'), __('Cancel')]},
|
||||||
function (index) {
|
function (index) {
|
||||||
var table = $(that).closest('table');
|
var table = $(that).closest('table');
|
||||||
var options = table.bootstrapTable('getOptions');
|
var options = table.bootstrapTable('getOptions');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue