...
|
...
|
@@ -128,12 +128,12 @@ function timeToSeconds(time) { |
|
|
|
|
|
var e = new common.edit("#baseform");
|
|
|
|
|
|
console.log(e);
|
|
|
|
|
|
var dialog = common.dialog.confirm(hint, artTemplate("template", item), function() {
|
|
|
|
|
|
e.submit(url, function (option) {
|
|
|
|
|
|
console.log(option.data);
|
|
|
|
|
|
option.data.startTime = new Date(option.data.startTime).getTime() / 1000;
|
|
|
option.data.endTime = new Date(option.data.endTime).getTime() / 1000;
|
|
|
|
...
|
...
|
@@ -147,6 +147,13 @@ function timeToSeconds(time) { |
|
|
return false;
|
|
|
});
|
|
|
|
|
|
e.on("validate", function() {
|
|
|
var matchWordName = $("#baseform").find("#matchWordName").val();
|
|
|
if (matchWordName.indexOf(",") >= 0) {
|
|
|
return "请使用英文 , 分割";
|
|
|
}
|
|
|
});
|
|
|
|
|
|
e.init();
|
|
|
|
|
|
|
...
|
...
|
|