From fc993c6ed7060ef392051ff948d149a5ebd854e7 Mon Sep 17 00:00:00 2001 From: jose <627622230@qq.com> Date: Wed, 26 Jun 2019 18:19:25 +0800 Subject: [PATCH] Provide exclusion rules for file directories when scheduling tasks to back up sites and directories --- BTPanel/static/js/crontab.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/BTPanel/static/js/crontab.js b/BTPanel/static/js/crontab.js index bc3c85b8..ea98564a 100644 --- a/BTPanel/static/js/crontab.js +++ b/BTPanel/static/js/crontab.js @@ -97,7 +97,7 @@ function edit_task_info(id){ minute: rdata.where_minute, week: rdata.where1, sType: rdata.sType, - sBody: rdata.sBody, + sBody: rdata.sBody == 'undefined' ? '' : rdata.sBody, sName: rdata.sName, backupTo: rdata.backupTo, save: rdata.save, @@ -213,9 +213,9 @@ function edit_task_info(id){ \ \ \ -
\ +
\ '+lan.crontab.shell_content+'\ -
\ +
\
\
\ '+lan.crontab.tips+'\ @@ -560,7 +560,7 @@ function planAdd(){ return; } }else{ - if(sBody == ''){ + if(sBody == '' && sType=='toShell'){ $("#implement textarea[name='sBody']").focus(); layer.msg(lan.crontab.input_script_err,{icon:2}); return; @@ -784,7 +784,7 @@ function toBackup(type){
  • '+lan.public.all+'
  • \ '+sOpt+'\ \ -
    ' +
    ' }else{ $(".planname input[name='name']").val(sMsg+'[/www/wwwroot/]'); sOptBody = '
    ' @@ -819,6 +819,14 @@ function toBackup(type){ \ '+lan.crontab.save_num+'\ '; + if (sType == 'sites') { + sBody += '

    \ +

    '+lan.public.exclusion_rule+'
    \ + \ +

    '; + } $("#implement").html(sBody); getselectname(); $(".dropdown ul li a").click(function(){