check javascript bugs

This commit is contained in:
yubaolee
2016-05-26 23:01:07 +08:00
parent 855f97df7d
commit ef6a274ac6
4 changed files with 5 additions and 7 deletions

View File

@@ -25,7 +25,6 @@ $(document).ready(function () {
}, function (json) { }, function (json) {
json = $.parseJSON(json); json = $.parseJSON(json);
if (json.statusCode != "200") { if (json.statusCode != "200") {
json = $.parseJSON(json);
$(this).alertmsg('warn', json.message); $(this).alertmsg('warn', json.message);
return; return;
} }
@@ -43,7 +42,6 @@ $(document).ready(function () {
}, function (json) { }, function (json) {
json = $.parseJSON(json); json = $.parseJSON(json);
if (json.statusCode != "200") { if (json.statusCode != "200") {
json = $.parseJSON(json);
$(this).alertmsg('warn', json.message); $(this).alertmsg('warn', json.message);
return; return;
} }

View File

@@ -25,7 +25,6 @@ $(document).ready(function () {
}, function (json) { }, function (json) {
json = $.parseJSON(json); json = $.parseJSON(json);
if (json.statusCode != "200") { if (json.statusCode != "200") {
json = $.parseJSON(json);
$(this).alertmsg('warn', json.message); $(this).alertmsg('warn', json.message);
return; return;
} }
@@ -43,7 +42,6 @@ $(document).ready(function () {
}, function (json) { }, function (json) {
json = $.parseJSON(json); json = $.parseJSON(json);
if (json.statusCode != "200") { if (json.statusCode != "200") {
json = $.parseJSON(json);
$(this).alertmsg('warn', json.message); $(this).alertmsg('warn', json.message);
return; return;
} }

View File

@@ -25,7 +25,6 @@ $(document).ready(function () {
}, function (json) { }, function (json) {
json = $.parseJSON(json); json = $.parseJSON(json);
if (json.statusCode != "200") { if (json.statusCode != "200") {
json = $.parseJSON(json);
$(this).alertmsg('warn', json.message); $(this).alertmsg('warn', json.message);
return; return;
} }
@@ -43,7 +42,6 @@ $(document).ready(function () {
}, function (json) { }, function (json) {
json = $.parseJSON(json); json = $.parseJSON(json);
if (json.statusCode != "200") { if (json.statusCode != "200") {
json = $.parseJSON(json);
$(this).alertmsg('warn', json.message); $(this).alertmsg('warn', json.message);
return; return;
} }

View File

@@ -1,5 +1,5 @@
//左边分类导航树 //左边分类导航树
var tree = function () { var ztree = function () {
var url = '/OrgManager/LoadOrg'; var url = '/OrgManager/LoadOrg';
var setting = { var setting = {
view: { selectedMulti: false }, view: { selectedMulti: false },
@@ -214,6 +214,10 @@ var editDlg = function () {
$("#editForm").bjuiajax('ajaxForm', { $("#editForm").bjuiajax('ajaxForm', {
reload: false, reload: false,
callback: function (json) { callback: function (json) {
if (json.statusCode != "200") {
$(this).alertmsg('warn', json.message);
return;
}
list.reload(); list.reload();
ztree.reload(); ztree.reload();
} }