From a4448808ce5bc485f035bf9d24306d181182973c Mon Sep 17 00:00:00 2001 From: zhaoxiang <756958008@qq.com> Date: Mon, 14 Nov 2016 19:17:59 +0800 Subject: [PATCH] =?UTF-8?q?added=20=E9=80=82=E9=85=8D=E8=92=99=E7=89=88?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/admin/static/js/template.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/public/admin/static/js/template.js b/public/admin/static/js/template.js index 02464db..439a80d 100644 --- a/public/admin/static/js/template.js +++ b/public/admin/static/js/template.js @@ -117,7 +117,7 @@ } else { message = data.msg; } - $.alertMsg(message); + $.alertMsg(message, wait); if( isRedirect ){ setTimeout(function() { if (data.url) { @@ -134,7 +134,7 @@ }, wait); } } else { - $.alertMsg(data.msg); + $.alertMsg(data.msg, wait); } }); return false; @@ -161,14 +161,14 @@ } else { message = data.msg; } - $.alertMsg(message); + $.alertMsg(message, wait); setTimeout(function() { if (data.url) { $.refresh(data.url); } }, wait); } else { - $.alertMsg(data.msg); + $.alertMsg(data.msg, wait); } }); return false; @@ -203,14 +203,14 @@ }).done(function( data ) { var wait = 1000*data.wait; if (data.code == 1) { - $.alertMsg(data.msg); + $.alertMsg(data.msg, wait); setTimeout(function() { if (data.url) { $.refresh(data.url); } }, wait); } else { - $.alertMsg(data.msg); + $.alertMsg(data.msg, wait); } }); } @@ -249,14 +249,14 @@ }).done(function( data ) { var wait = 1000*data.wait; if (data.code == 1) { - $.alertMsg(data.msg); + $.alertMsg(data.msg, wait); setTimeout(function() { if (data.url) { $.refresh(data.url); } }, wait); } else { - $.alertMsg(data.msg); + $.alertMsg(data.msg, wait); } }); } @@ -294,14 +294,14 @@ } else { message = data.msg; } - $.alertMsg(message); + $.alertMsg(message, wait); setTimeout(function() { if (data.url) { $.refresh(data.url); } }, wait); } else { - $.alertMsg(data.msg); + $.alertMsg(data.msg, wait); } }); })