切换导航条
此项目
正在载入...
登录
何书鹏
/
anttest
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
Karson
8 years ago
提交
fe4465bbbaf986c9110649611f00dcc4cb9e2882
1 个父辈
54f5a344
修复列表页过长可能导致删除提示框被隐藏的BUG
修复移动端删除提示框显示的异常
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
9 行增加
和
1 行删除
public/assets/js/require-table.js
public/assets/js/require-table.js
查看文件 @
fe4465b
...
...
@@ -228,9 +228,17 @@ define(['jquery', 'bootstrap', 'backend', 'config', 'toastr', 'moment', 'bootstr
},
'click .btn-delone'
:
function
(
e
,
value
,
row
,
index
)
{
var
that
=
this
;
var
top
=
$
(
that
).
offset
().
top
-
$
(
window
).
scrollTop
();
var
left
=
$
(
that
).
offset
().
left
-
$
(
window
).
scrollLeft
()
-
260
;
if
(
top
+
154
>
$
(
window
).
height
()){
top
=
top
-
154
;
}
if
(
$
(
window
).
width
()
<
480
){
top
=
left
=
undefined
;
}
var
index
=
Backend
.
api
.
layer
.
confirm
(
__
(
'Are you sure you want to delete this item?'
),
{
icon
:
3
,
title
:
__
(
'Warning'
),
offset
:
[
$
(
that
).
offset
().
top
,
$
(
that
).
offset
().
left
-
260
],
shadeClose
:
true
},
{
icon
:
3
,
title
:
__
(
'Warning'
),
offset
:
[
top
,
left
],
shadeClose
:
true
},
function
()
{
var
table
=
$
(
that
).
closest
(
'table'
);
Table
.
api
.
multi
(
"del"
,
row
.
id
,
table
,
that
);
...
...
请
注册
或
登录
后发表评论