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(); }