diff --git a/route/static/app/config.js b/route/static/app/config.js index 61feae9f1..2853188c1 100755 --- a/route/static/app/config.js +++ b/route/static/app/config.js @@ -54,7 +54,7 @@ function modifyAuthPath() { type: 1, area: "500px", title: "修改安全入口", - closeBtn: 2, + closeBtn: 1, shift: 5, shadeClose: false, content: '
\ @@ -131,7 +131,7 @@ function setPassword(a) { type: 1, area: "290px", title: '修改密码', - closeBtn: 2, + closeBtn: 1, shift: 5, shadeClose: false, content: "
\ @@ -187,7 +187,7 @@ function setUserName(a) { type: 1, area: "290px", title: '修改面板用户名', - closeBtn: 2, + closeBtn: 1, shift: 5, shadeClose: false, content: "
\ @@ -238,7 +238,7 @@ function setPanelSSL(){ \ 了解详情\

'; - layer.confirm(msg,{title:'设置面板SSL',closeBtn:2,icon:3,area:'550px',cancel:function(){ + layer.confirm(msg,{title:'设置面板SSL',closeBtn:1,icon:3,area:'550px',cancel:function(){ if(status == 0){ $("#panelSSL").prop("checked",false); } @@ -302,7 +302,7 @@ function getPanelSSL(){ type: 1, area: "600px", title: '自定义面板证书', - closeBtn: 2, + closeBtn: 1, shift: 5, shadeClose: false, content:certBody diff --git a/route/static/app/control.js b/route/static/app/control.js index eb9ec9e12..f07d400d0 100755 --- a/route/static/app/control.js +++ b/route/static/app/control.js @@ -180,7 +180,7 @@ function setControl(act, value=false){ //清理记录 function closeControl(){ - layer.confirm('您真的清空所有监控记录吗?',{title:'清空记录',icon:3,closeBtn:2}, function() { + layer.confirm('您真的清空所有监控记录吗?',{title:'清空记录',icon:3,closeBtn:1}, function() { loadT = layer.msg('正在处理,请稍候...',{icon:16,time:0}) $.post('/system/set_control','type=del',function(rdata){ layer.close(loadT); diff --git a/route/static/app/crontab.js b/route/static/app/crontab.js index b0c695b00..89811e8df 100755 --- a/route/static/app/crontab.js +++ b/route/static/app/crontab.js @@ -24,7 +24,7 @@ function getLogs(id){ title:lan.crontab.task_log_title, area: ['60%','500px'], shadeClose:false, - closeBtn:2, + closeBtn:1, content:'
' +'
'
 					+'
' @@ -93,7 +93,7 @@ function getCronData(page){ // 设置计划任务状态 function setTaskStatus(id,status){ - var confirm = layer.confirm(status == '0'?'计划任务暂停后将无法继续运行,您真的要停用这个计划任务吗?':'该计划任务已停用,是否要启用这个计划任务', {title:'提示',icon:3,closeBtn:2},function(index) { + var confirm = layer.confirm(status == '0'?'计划任务暂停后将无法继续运行,您真的要停用这个计划任务吗?':'该计划任务已停用,是否要启用这个计划任务', {title:'提示',icon:3,closeBtn:1},function(index) { if (index > 0) { var loadT = layer.msg('正在设置状态,请稍后...',{icon:16,time:0,shade: [0.3, '#000']}); $.post('/crontab/set_cron_status',{id:id},function(rdata){ @@ -610,7 +610,7 @@ function editTaskInfo(id){ area: ['850px','450px'], skin:'layer-create-content', shadeClose:false, - closeBtn:2, + closeBtn:1, content:'
\
\ 任务类型\ diff --git a/route/static/app/files.js b/route/static/app/files.js index 888cbc756..01ce125db 100755 --- a/route/static/app/files.js +++ b/route/static/app/files.js @@ -196,7 +196,7 @@ function recycleBin(type){ layer.open({ type: 1, shift: 5, - closeBtn: 2, + closeBtn: 1, area: ['80%','606px'], title: lan.files.recycle_bin_title, content: tablehtml @@ -841,7 +841,7 @@ function createFile(type, path) { layer.open({ type: 1, shift: 5, - closeBtn: 2, + closeBtn: 1, area: '320px', title: '新建空白文件', content: '
\ @@ -881,7 +881,7 @@ function createDir(type, path) { layer.open({ type: 1, shift: 5, - closeBtn: 2, + closeBtn: 1, area: '320px', title: '新建目录', content: '
\ @@ -981,7 +981,7 @@ function downloadFile(action){ layer.open({ type: 1, shift: 5, - closeBtn: 2, + closeBtn: 1, area: '500px', btn:["确定","关闭"], title: lan.files.down_title, @@ -1034,7 +1034,7 @@ function reName(type, fileName) { layer.open({ type: 1, shift: 5, - closeBtn: 2, + closeBtn: 1, area: '320px', title: '重命名', btn:["确定","保存"], @@ -1185,7 +1185,7 @@ function zip(dirName,submits) { layer.open({ type: 1, shift: 5, - closeBtn: 2, + closeBtn: 1, area: '650px', title: lan.files.zip_title, content: '
' @@ -1241,7 +1241,7 @@ function unZip(fileName,type) { layer.open({ type: 1, shift: 5, - closeBtn: 2, + closeBtn: 1, area: '490px', title: '解压文件', content: '
' @@ -1299,7 +1299,7 @@ function getImage(fileName){ var imgUrl = '/files/download?filename='+fileName; layer.open({ type:1, - closeBtn: 2, + closeBtn: 1, title:false, area: '500px', shadeClose: true, @@ -1319,7 +1319,7 @@ function uploadFiles(){ var path = $("#DirPathPlace input").val()+"/"; layer.open({ type:1, - closeBtn: 2, + closeBtn: 1, title:lan.files.up_title, area: ['500px','300px'], shadeClose:false, @@ -1364,7 +1364,7 @@ function setChmod(action,fileName){ // console.log(rdata); layer.open({ type:1, - closeBtn: 2, + closeBtn: 1, title: '设置权限['+fileName+']', area: '400px', shadeClose:false, diff --git a/route/static/app/index.js b/route/static/app/index.js index bb1d7e5d8..081c11e18 100755 --- a/route/static/app/index.js +++ b/route/static/app/index.js @@ -527,7 +527,7 @@ function checkUpdate() { } if (rdata.status === false) { - layer.confirm(rdata.msg, { title: lan.index.update_check, icon: 1, closeBtn: 2, btn: [lan.public.know, lan.public.close] }); + layer.confirm(rdata.msg, { title: lan.index.update_check, icon: 1, closeBtn: 1, btn: [lan.public.know, lan.public.close] }); return; } layer.msg(rdata.msg, { icon: 1 }); @@ -610,7 +610,7 @@ function reBoot() { type: 1, title: '重启服务器或者面板', area: '330px', - closeBtn: 2, + closeBtn: 1, shadeClose: false, content: '' }); @@ -620,7 +620,7 @@ function reBoot() { var type = $(this).attr('data-id'); switch (type) { case 'panel': - layer.confirm('即将重启面板服务,继续吗?', { title: '重启面板服务', closeBtn: 2, icon: 3 }, function () { + layer.confirm('即将重启面板服务,继续吗?', { title: '重启面板服务', closeBtn: 1, icon: 3 }, function () { var loadT = layer.load(); $.post('/system/restart','',function (rdata) { layer.close(loadT); @@ -634,7 +634,7 @@ function reBoot() { type: 1, title: '安全重启服务器', area: ['500px', '280px'], - closeBtn: 2, + closeBtn: 1, shadeClose: false, content: "
\
\ @@ -692,7 +692,7 @@ function reBoot() { //修复面板 function repPanel() { - layer.confirm(lan.index.rep_panel_msg, { title: lan.index.rep_panel_title, closeBtn: 2, icon: 3 }, function() { + layer.confirm(lan.index.rep_panel_msg, { title: lan.index.rep_panel_title, closeBtn: 1, icon: 3 }, function() { var loadT = layer.msg(lan.index.rep_panel_the, { icon: 16, time: 0, shade: [0.3, '#000'] }); $.get('/system?action=RepPanel', function(rdata) { layer.close(loadT); @@ -750,7 +750,7 @@ function showDanger(num, port) { type: 1, area: ['720px', '410px'], title: '安全提醒(如你想放弃任何安全提醒通知,请删除宝塔安全登录插件)', - closeBtn: 2, + closeBtn: 1, shift: 5, content: '
\ \ diff --git a/route/static/app/public.js b/route/static/app/public.js index 3ff15253e..8b3e57497 100755 --- a/route/static/app/public.js +++ b/route/static/app/public.js @@ -204,7 +204,7 @@ function changePath(d) { type: 1, area: "650px", title: '选择目录', - closeBtn: 2, + closeBtn: 1, shift: 5, shadeClose: false, content: "
\ @@ -554,7 +554,7 @@ function onlineEditFile(k, f) { var r = layer.open({ type: 1, shift: 5, - closeBtn: 2, + closeBtn: 1, area: ["90%", "90%"], title: lan.bt.edit_title+"[" + f + "]", content: '

'+lan.bt.edit_ps+'