/* *宝塔面板去除各种计算题与延时等待 */ if("undefined" != typeof bt && bt.hasOwnProperty("show_confirm")){ bt.show_confirm = function(title, msg, callback, error) { layer.open({ type: 1, title: title, area: "365px", closeBtn: 2, shadeClose: true, btn: [lan['public'].ok, lan['public'].cancel], content: "
\

" + msg + "

" + (error || '') + "\
", yes: function (index, layero) { layer.close(index); if (callback) callback(); } }); } } if("undefined" != typeof bt && bt.hasOwnProperty("prompt_confirm")){ bt.prompt_confirm = function (title, msg, callback) { layer.open({ type: 1, title: title, area: "350px", closeBtn: 2, btn: ['确认', '取消'], content: "
\

" + msg + "

\
", yes: function (layers, index) { layer.close(layers) if (callback) callback() } }); } } if("undefined" != typeof bt && bt.hasOwnProperty("compute_confirm")){ bt.compute_confirm = function (config, callback) { layer.open({ type: 1, title: config.title, area: '430px', closeBtn: 2, shadeClose: true, btn: [lan['public'].ok, lan['public'].cancel], content: '
\
\ \
' + config.msg + '
\
\
', yes: function (layers, index) { layer.close(layers) if (callback) callback() } }); } } if("undefined" != typeof bt && bt.hasOwnProperty("input_confirm")){ bt.input_confirm = function (config, callback) { layer.open({ type: 1, title: config.title, area: '430px', closeBtn: 2, shadeClose: true, btn: [lan['public'].ok, lan['public'].cancel], content: '
\
\ \
' + config.msg + '
\
\
', yes: function (layers, index) { layer.close(layers); if (callback) callback(); }, }); } } if(window.hasOwnProperty("SafeMessage")){ window.SafeMessage = function(j, h, g, f) { if (f == undefined) f = ''; var mess = layer.open({ type: 1, title: j, area: "350px", closeBtn: 2, shadeClose: true, content: "

" + h + "

" + f + "
" }); $(".bt-cancel").click(function(){ layer.close(mess); }); $("#toSubmit").click(function() { layer.close(mess); g(); }) } }