修复 cronGen 丢失 name 问题.
This commit is contained in:
parent
f26b88c2e3
commit
0741456510
|
@ -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() {
|
||||||
$("#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() {
|
||||||
$("#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() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$("#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();
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
(function ($) {
|
(function ($) {
|
||||||
var resultsName = "";
|
// var resultsName = "";
|
||||||
var inputElement;
|
var inputElement;
|
||||||
var displayElement;
|
var displayElement;
|
||||||
$.fn.extend({
|
$.fn.extend({
|
||||||
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue