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
2b708f20
authored
Oct 21, 2019
by
许雪里
Committed by
GitHub
Oct 21, 2019
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge pull request #1064 from ChunMengLu/master
修复 cronGen 丢失 name 问题.
parents
99e7bfc6
07414565
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js
xxl-job-admin/src/main/resources/static/plugins/cronGen/cronGen.js
xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js
View file @
2b708f20
...
@@ -319,7 +319,7 @@ $(function() {
...
@@ -319,7 +319,7 @@ $(function() {
$
(
".add"
).
click
(
function
(){
$
(
".add"
).
click
(
function
(){
// init
// init
//
$("#addModal .form input[name='jobCron']").cronGen({});
$
(
"#addModal .form input[name='jobCron']"
).
cronGen
({});
$
(
'#addModal'
).
modal
({
backdrop
:
false
,
keyboard
:
false
}).
modal
(
'show'
);
$
(
'#addModal'
).
modal
({
backdrop
:
false
,
keyboard
:
false
}).
modal
(
'show'
);
});
});
...
@@ -414,6 +414,8 @@ $(function() {
...
@@ -414,6 +414,8 @@ $(function() {
$
(
"#addModal"
).
on
(
'hide.bs.modal'
,
function
()
{
$
(
"#addModal"
).
on
(
'hide.bs.modal'
,
function
()
{
$
(
"#addModal .form"
)[
0
].
reset
();
$
(
"#addModal .form"
)[
0
].
reset
();
addModalValidate
.
resetForm
();
addModalValidate
.
resetForm
();
// 清理 cronGen
$
(
"input[name=jobCron]"
).
show
().
siblings
().
remove
();
$
(
"#addModal .form .form-group"
).
removeClass
(
"has-error"
);
$
(
"#addModal .form .form-group"
).
removeClass
(
"has-error"
);
$
(
".remote_panel"
).
show
();
// remote
$
(
".remote_panel"
).
show
();
// remote
...
@@ -479,7 +481,7 @@ $(function() {
...
@@ -479,7 +481,7 @@ $(function() {
$
(
"#updateModal .form select[name=glueType]"
).
change
();
$
(
"#updateModal .form select[name=glueType]"
).
change
();
// init
// init
//
$("#updateModal .form input[name='jobCron']").cronGen({});
$
(
"#updateModal .form input[name='jobCron']"
).
cronGen
({});
// show
// show
$
(
'#updateModal'
).
modal
({
backdrop
:
false
,
keyboard
:
false
}).
modal
(
'show'
);
$
(
'#updateModal'
).
modal
({
backdrop
:
false
,
keyboard
:
false
}).
modal
(
'show'
);
...
@@ -574,7 +576,9 @@ $(function() {
...
@@ -574,7 +576,9 @@ $(function() {
}
}
});
});
$
(
"#updateModal"
).
on
(
'hide.bs.modal'
,
function
()
{
$
(
"#updateModal"
).
on
(
'hide.bs.modal'
,
function
()
{
$
(
"#updateModal .form"
)[
0
].
reset
()
$
(
"#updateModal .form"
)[
0
].
reset
();
// 清理 cronGen
$
(
"input[name=jobCron]"
).
show
().
siblings
().
remove
();
});
});
/**
/**
...
...
xxl-job-admin/src/main/resources/static/plugins/cronGen/cronGen.js
View file @
2b708f20
(
function
(
$
)
{
(
function
(
$
)
{
var
resultsName
=
""
;
//
var resultsName = "";
var
inputElement
;
var
inputElement
;
var
displayElement
;
var
displayElement
;
$
.
fn
.
extend
({
$
.
fn
.
extend
({
...
@@ -315,8 +315,8 @@
...
@@ -315,8 +315,8 @@
$
(
tabContent
).
appendTo
(
span12
);
$
(
tabContent
).
appendTo
(
span12
);
//creating the button and results input
//creating the button and results input
resultsName
=
$
(
this
).
prop
(
"id"
);
//
resultsName = $(this).prop("id");
$
(
this
).
prop
(
"name"
,
resultsName
);
//
$(this).prop("name", resultsName);
$
(
span12
).
appendTo
(
row
);
$
(
span12
).
appendTo
(
row
);
$
(
row
).
appendTo
(
container
);
$
(
row
).
appendTo
(
container
);
...
...
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