My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 143 attachment: code.js (1.0 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$(function () {

// Ajax Parameter vorbelegen
$.ajaxSetup({
contentType: 'application/json; charset=utf-8',
dataType: 'json',
async: false,
timeout: 5000,
error: function(xhr) {
alert('AjaxCall-Error: ' + xhr.status + ' ' + xhr.statusText);
}
});

$("#tree").dynatree({
title: "Eigene Favoriten und Rollenmenüs",
rootVisible: true,
minExpandLevel: 1,
persist: true,
autoCollapse: true,
clickFolderMode: 2,
selectMode: 1,
activeVisible: false,
autoFocus: true,
cookie: { expires: 1 },
initAjax: { url: "/sap/bc/bsp/sap/zajaxtest/rollenmenu.json",
async: true, //"false -> crash
success: function(data) {
$("#dialog").dialog("close");
}
},
onClick: function(dtnode) {
if( dtnode.data.url ) {
$("[name=contentFrame]").attr("src", dtnode.data.url);
}
}

});

$("#tree").dynatree("getRoot").visit(function(dtnode){ dtnode.expand(true);});


});
Powered by Google Project Hosting