Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
21d1b57a
authored
Sep 09, 2016
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1、任务新增时,任务列表偏移问题修复;
2、任务删除时,任务列表偏移问题修复; 原因:confirm和alert弹框冲突导致;
parent
c4732c95
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
xxl-job-admin/src/main/webapp/static/js/xxl.alert.1.js
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
View file @
21d1b57a
...
@@ -286,11 +286,13 @@ $(function() {
...
@@ -286,11 +286,13 @@ $(function() {
submitHandler
:
function
(
form
)
{
submitHandler
:
function
(
form
)
{
$
.
post
(
base_url
+
"/jobinfo/add"
,
$
(
"#addModal .form"
).
serialize
(),
function
(
data
,
status
)
{
$
.
post
(
base_url
+
"/jobinfo/add"
,
$
(
"#addModal .form"
).
serialize
(),
function
(
data
,
status
)
{
if
(
data
.
code
==
"200"
)
{
if
(
data
.
code
==
"200"
)
{
ComAlert
.
show
(
1
,
"新增任务成功"
,
function
(){
$
(
'#addModal'
).
modal
(
'hide'
);
//window.location.reload();
setTimeout
(
function
()
{
$
(
'#addModal'
).
modal
(
'hide'
);
ComAlert
.
show
(
1
,
"新增任务成功"
,
function
(){
jobTable
.
fnDraw
();
jobTable
.
fnDraw
();
});
//window.location.reload();
});
},
315
);
}
else
{
}
else
{
if
(
data
.
msg
)
{
if
(
data
.
msg
)
{
ComAlert
.
show
(
2
,
data
.
msg
);
ComAlert
.
show
(
2
,
data
.
msg
);
...
...
xxl-job-admin/src/main/webapp/static/js/xxl.alert.1.js
View file @
21d1b57a
...
@@ -83,8 +83,10 @@ var ComConfirm = {
...
@@ -83,8 +83,10 @@ var ComConfirm = {
$
(
'#ComConfirm .ok'
).
click
(
function
(){
$
(
'#ComConfirm .ok'
).
click
(
function
(){
$
(
'#ComConfirm'
).
modal
(
'hide'
);
$
(
'#ComConfirm'
).
modal
(
'hide'
);
if
(
typeof
callback
==
'function'
)
{
if
(
typeof
callback
==
'function'
)
{
callback
();
setTimeout
(
function
(){
return
;
callback
();
return
;
},
315
);
}
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment