From ef6a274ac63ad43adc29dca8d3c963a62e0479ea Mon Sep 17 00:00:00 2001 From: yubaolee Date: Thu, 26 May 2016 23:01:07 +0800 Subject: [PATCH] check javascript bugs --- OpenAuth.Mvc/BllScripts/assignModule.js | 2 -- OpenAuth.Mvc/BllScripts/assignOrg.js | 2 -- OpenAuth.Mvc/BllScripts/assignRes.js | 2 -- OpenAuth.Mvc/BllScripts/stockManager.js | 6 +++++- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/OpenAuth.Mvc/BllScripts/assignModule.js b/OpenAuth.Mvc/BllScripts/assignModule.js index d9100cc5..96fa3472 100644 --- a/OpenAuth.Mvc/BllScripts/assignModule.js +++ b/OpenAuth.Mvc/BllScripts/assignModule.js @@ -25,7 +25,6 @@ $(document).ready(function () { }, function (json) { json = $.parseJSON(json); if (json.statusCode != "200") { - json = $.parseJSON(json); $(this).alertmsg('warn', json.message); return; } @@ -43,7 +42,6 @@ $(document).ready(function () { }, function (json) { json = $.parseJSON(json); if (json.statusCode != "200") { - json = $.parseJSON(json); $(this).alertmsg('warn', json.message); return; } diff --git a/OpenAuth.Mvc/BllScripts/assignOrg.js b/OpenAuth.Mvc/BllScripts/assignOrg.js index b379a715..edb46009 100644 --- a/OpenAuth.Mvc/BllScripts/assignOrg.js +++ b/OpenAuth.Mvc/BllScripts/assignOrg.js @@ -25,7 +25,6 @@ $(document).ready(function () { }, function (json) { json = $.parseJSON(json); if (json.statusCode != "200") { - json = $.parseJSON(json); $(this).alertmsg('warn', json.message); return; } @@ -43,7 +42,6 @@ $(document).ready(function () { }, function (json) { json = $.parseJSON(json); if (json.statusCode != "200") { - json = $.parseJSON(json); $(this).alertmsg('warn', json.message); return; } diff --git a/OpenAuth.Mvc/BllScripts/assignRes.js b/OpenAuth.Mvc/BllScripts/assignRes.js index a1db252e..adfc3849 100644 --- a/OpenAuth.Mvc/BllScripts/assignRes.js +++ b/OpenAuth.Mvc/BllScripts/assignRes.js @@ -25,7 +25,6 @@ $(document).ready(function () { }, function (json) { json = $.parseJSON(json); if (json.statusCode != "200") { - json = $.parseJSON(json); $(this).alertmsg('warn', json.message); return; } @@ -43,7 +42,6 @@ $(document).ready(function () { }, function (json) { json = $.parseJSON(json); if (json.statusCode != "200") { - json = $.parseJSON(json); $(this).alertmsg('warn', json.message); return; } diff --git a/OpenAuth.Mvc/BllScripts/stockManager.js b/OpenAuth.Mvc/BllScripts/stockManager.js index 0cb69fa4..75fdaa3a 100644 --- a/OpenAuth.Mvc/BllScripts/stockManager.js +++ b/OpenAuth.Mvc/BllScripts/stockManager.js @@ -1,5 +1,5 @@ //左边分类导航树 -var tree = function () { +var ztree = function () { var url = '/OrgManager/LoadOrg'; var setting = { view: { selectedMulti: false }, @@ -214,6 +214,10 @@ var editDlg = function () { $("#editForm").bjuiajax('ajaxForm', { reload: false, callback: function (json) { + if (json.statusCode != "200") { + $(this).alertmsg('warn', json.message); + return; + } list.reload(); ztree.reload(); }