mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-17 10:42:08 +08:00
routine update
This commit is contained in:
parent
153f263d34
commit
d4580051c6
@ -11,11 +11,31 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
function zTreeOnClick(event, treeId, treeNode) {
|
||||||
|
alert(treeNode.tId + ", " + treeNode.name);
|
||||||
|
};
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
$.getJSON("OrgManager/LoadTree", function (json) {
|
var setting = {
|
||||||
zTreeObj = initTree("#orgTree", json);
|
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({
|
$('#test-datagrid-array').datagrid({
|
||||||
|
Loading…
Reference in New Issue
Block a user