紧急修复由于BJUI的JS函数名不能相同造成按钮事件混乱的问题,请删除数据库中的表记录,重新用脚本初始化一次数据

This commit is contained in:
yubaolee
2015-12-08 00:29:44 +08:00
parent 5154e9cbcf
commit 4e7208e744
11 changed files with 59 additions and 30 deletions

View File

@@ -125,7 +125,7 @@
onCheck: zTreeCheck
}
};
$.getJSON('ModuleManager/LoadForTree', function (json) {
$.getJSON('ModuleManager/LoadModuleWithRoot', function (json) {
var zTreeObj = $.fn.zTree.init($('#j_select_tree1'), setting, json);
zTreeObj.expandAll(true);
});

View File

@@ -120,14 +120,14 @@
},
callback: {onClick: zTreeOnClick}
};
$.getJSON('ModuleManager/LoadForTree', function (json) {
$.getJSON('ModuleManager/LoadModuleWithRoot', function (json) {
var zTreeObj = $.fn.zTree.init($('#@_treeId'), setting, json);
zTreeObj.expandAll(true);
});
}
//删除
function del() {
function delModule() {
var selected = getSelected('#@_gridId',2);
if (selected == null) return;
@@ -150,7 +150,7 @@
url: '/ModuleManager/Add?id=' + selected,
title: '编辑',
onClose:function() {
refreshGrid();
refreshModuleGrid();
}
});
@@ -172,7 +172,7 @@
}
function refreshGrid() {
function refreshModuleGrid() {
$('#@_gridId').datagrid('refresh');
// loadDataGrid();
}