From 604765fcc04740ef2b6d2b81167ff2d65ea59fa0 Mon Sep 17 00:00:00 2001 From: sohero Date: Sun, 6 Jul 2014 09:15:55 +0800 Subject: [PATCH] Update common.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将删除操作的错误提示框由系统提示框改为artdialog提示 --- statics/js/common.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/statics/js/common.js b/statics/js/common.js index 2352684..b90a90e 100644 --- a/statics/js/common.js +++ b/statics/js/common.js @@ -237,6 +237,12 @@ $this = $($_this), href = $this.prop('href'), msg = $this.data('msg'); + + var errorDialog = art.dialog({ + icon: 'error', + title: '提示信息' + }).hide(); + art.dialog({ title: false, icon: 'question', @@ -257,7 +263,8 @@ } } else if (data.state === 'fail') { //art.dialog.alert(data.info); - alert(data.info);//暂时处理方案 + //alert(data.info);//暂时处理方案 + errorDialog.content(data.info).show(); } }); }, @@ -716,4 +723,4 @@ function open_iframe_dialog(url,title,options){ Wind.use('artDialog','iframeTools', function () { art.dialog.open(url, params); }); -} \ No newline at end of file +}