mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-15 23:13:40 +08:00
routine update
This commit is contained in:
parent
153f263d34
commit
d4580051c6
@ -11,11 +11,31 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function zTreeOnClick(event, treeId, treeNode) {
|
||||
alert(treeNode.tId + ", " + treeNode.name);
|
||||
};
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
$.getJSON("OrgManager/LoadTree", function (json) {
|
||||
zTreeObj = initTree("#orgTree", json);
|
||||
var setting = {
|
||||
view: {
|
||||
selectedMulti: false
|
||||
},
|
||||
data: {
|
||||
simpleData: {
|
||||
enable: true,
|
||||
idKey: "id",
|
||||
pIdKey: "pId",
|
||||
rootPId: "null"
|
||||
}
|
||||
},
|
||||
callback: {
|
||||
onClick: zTreeOnClick
|
||||
}
|
||||
};
|
||||
|
||||
$.getJSON("OrgManager/LoadTree", function (json) {
|
||||
var zTreeObj = $.fn.zTree.init($("#orgTree"), setting, json);
|
||||
});
|
||||
|
||||
$('#test-datagrid-array').datagrid({
|
||||
|
Loading…
Reference in New Issue
Block a user