diff --git a/web/static/app/crontab.js b/web/static/app/crontab.js index de273367e..fa72f8872 100755 --- a/web/static/app/crontab.js +++ b/web/static/app/crontab.js @@ -266,7 +266,7 @@ function planAdd(){ $("#cronConfig input[name='week']").val($(".planweek").find("b").attr("val")); var sType = $(".planjs").find("b").attr("val"); - var sBody = encodeURIComponent($("#implement textarea[name='sBody']").val()); + var sBody = encodeURIComponent($("#implement textarea[name='sbody']").val()); if (sType == 'toShell'){ if(sBody == ''){ @@ -296,7 +296,7 @@ function planAdd(){ $("#cronConfig input[name='stype']").val(sType); $("#cronConfig textarea[name='sbody']").val(decodeURIComponent(sBody)); - if(sType == 'site' || sType == 'database' || sType == 'path'){ + if(sType == 'site' || sType == 'database' || sType.find('_mysql')>0 || sType == 'path'){ var backupTo = $(".planBackupTo").find("b").attr("val"); $("#backup_to").val(backupTo); } @@ -602,31 +602,31 @@ function toBackup(type){ } var sBody = '\ - '+ changeDir +'\ -
备份到
\ - \ -
保留最新
\ - \ - \ -
'; + \ + \ + \ + '+ changeDir +'\ +
备份到
\ + \ +
保留最新
\ + \ + \ +
'; $("#implement").html(sBody); getselectname(); $('.changePathDir').click(function(){ - changePathCallback($('#sName').val(),function(select_dir){ + changePathCallback($('#sname').val(),function(select_dir){ $(".planname input[name='name']").val('备份目录['+select_dir+']'); $('#implement .sname b').attr('val',select_dir).text(select_dir); }); @@ -634,7 +634,7 @@ function toBackup(type){ $(".dropdown ul li a").click(function(){ - var sName = $("#sName").attr("val"); + var sName = $("#sname").attr("val"); if(!sName) return; $(".planname input[name='name']").val(sMsg+'['+sName+']'); }); @@ -1032,8 +1032,8 @@ function toWhere1(ix){ //小时 function toHour(){ var mBody = '
\ - \ - 小时\ + \ + 小时\
'; $("#ptime").append(mBody); } @@ -1041,8 +1041,8 @@ function toHour(){ //分钟 function toMinute(){ var mBody = '
\ - \ - 分钟\ + \ + 分钟\
'; $("#ptime").append(mBody); @@ -1051,7 +1051,7 @@ function toMinute(){ //从文件 function toFile(){ var tBody = '\ - '; + '; $("#implement").html(tBody); $(".planname input[name='name']").removeAttr('readonly style').val(""); } diff --git a/web/version.py b/web/version.py index c5c898e0c..949efeedb 100644 --- a/web/version.py +++ b/web/version.py @@ -13,7 +13,7 @@ # 应用程序版本号组件 APP_RELEASE = 0 APP_REVISION = 18 -APP_SMALL_VERSION = 0.16 +APP_SMALL_VERSION = 0.17 # 应用程序版本后缀,例如“beta1”、“dev”。通常为空字符串GA发布。 APP_SUFFIX = ''