Showing
1 changed file
with
2 additions
and
1 deletions
@@ -144,7 +144,8 @@ var doDelType = function () { | @@ -144,7 +144,8 @@ var doDelType = function () { | ||
144 | console.log("delete " + id); | 144 | console.log("delete " + id); |
145 | $.get("type/del", {"id": id}, | 145 | $.get("type/del", {"id": id}, |
146 | function (data, state) { | 146 | function (data, state) { |
147 | - $('#jstree').jstree("delete_node", $("#" + id)); | 147 | + $.toaster('删除成功', '删除', 'info'); |
148 | + $('#jstree').jstree("delete_node", $("#node_" + id)); | ||
148 | } | 149 | } |
149 | ).fail(function () { | 150 | ).fail(function () { |
150 | $.toaster('删除失败:', '提示', 'warning'); | 151 | $.toaster('删除失败:', '提示', 'warning'); |
-
Please register or login to post a comment