Authored by FengRuwei

删除提示

@@ -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');