Merge branch 'master' of https://github.com/xuxueli/xxl-job
This commit is contained in:
commit
7a371191f3
|
@ -319,7 +319,7 @@ $(function() {
|
|||
$(".add").click(function(){
|
||||
|
||||
// init
|
||||
//$("#addModal .form input[name='jobCron']").cronGen({});
|
||||
$("#addModal .form input[name='jobCron']").cronGen({});
|
||||
|
||||
$('#addModal').modal({backdrop: false, keyboard: false}).modal('show');
|
||||
});
|
||||
|
@ -414,6 +414,8 @@ $(function() {
|
|||
$("#addModal").on('hide.bs.modal', function () {
|
||||
$("#addModal .form")[0].reset();
|
||||
addModalValidate.resetForm();
|
||||
// 清理 cronGen
|
||||
$("input[name=jobCron]").show().siblings().remove();
|
||||
$("#addModal .form .form-group").removeClass("has-error");
|
||||
$(".remote_panel").show(); // remote
|
||||
|
||||
|
@ -479,7 +481,7 @@ $(function() {
|
|||
$("#updateModal .form select[name=glueType]").change();
|
||||
|
||||
// init
|
||||
//$("#updateModal .form input[name='jobCron']").cronGen({});
|
||||
$("#updateModal .form input[name='jobCron']").cronGen({});
|
||||
|
||||
// show
|
||||
$('#updateModal').modal({backdrop: false, keyboard: false}).modal('show');
|
||||
|
@ -574,7 +576,9 @@ $(function() {
|
|||
}
|
||||
});
|
||||
$("#updateModal").on('hide.bs.modal', function () {
|
||||
$("#updateModal .form")[0].reset()
|
||||
$("#updateModal .form")[0].reset();
|
||||
// 清理 cronGen
|
||||
$("input[name=jobCron]").show().siblings().remove();
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
(function ($) {
|
||||
var resultsName = "";
|
||||
// var resultsName = "";
|
||||
var inputElement;
|
||||
var displayElement;
|
||||
$.fn.extend({
|
||||
|
@ -315,8 +315,8 @@
|
|||
$(tabContent).appendTo(span12);
|
||||
|
||||
//creating the button and results input
|
||||
resultsName = $(this).prop("id");
|
||||
$(this).prop("name", resultsName);
|
||||
// resultsName = $(this).prop("id");
|
||||
// $(this).prop("name", resultsName);
|
||||
|
||||
$(span12).appendTo(row);
|
||||
$(row).appendTo(container);
|
||||
|
|
Loading…
Reference in New Issue