Update crontab.js

pull/109/head
midoks 3 years ago
parent 6f6350b1a2
commit 0e5a5bd56c
  1. 9
      route/static/app/crontab.js

@ -362,6 +362,8 @@ function allAddCrontab(dataList,successCount,errorMsg){
}); });
} }
initDropdownMenu();
function initDropdownMenu(){
$(".dropdown ul li a").click(function(){ $(".dropdown ul li a").click(function(){
var txt = $(this).text(); var txt = $(this).text();
var type = $(this).attr("value"); var type = $(this).attr("value");
@ -431,7 +433,8 @@ $(".dropdown ul li a").click(function(){
$(".controls").html('URL地址'); $(".controls").html('URL地址');
break; break;
} }
}) });
}
//备份 //备份
@ -664,6 +667,9 @@ function editTaskInfo(id){
<div class="bt-submit plan-submits " style="margin-left: 141px;">保存编辑</div>\ <div class="bt-submit plan-submits " style="margin-left: 141px;">保存编辑</div>\
</div>\ </div>\
</div>' </div>'
,cancel: function(){
initDropdownMenu();
}
}); });
setTimeout(function(){ setTimeout(function(){
if(obj.from.stype == 'toShell'){ if(obj.from.stype == 'toShell'){
@ -805,6 +811,7 @@ function editTaskInfo(id){
layer.closeAll(); layer.closeAll();
getCronData(1); getCronData(1);
layer.msg(rdata.msg,{icon:rdata.status?1:2}); layer.msg(rdata.msg,{icon:rdata.status?1:2});
initDropdownMenu();
},'json'); },'json');
}); });
},100); },100);

Loading…
Cancel
Save