192d4aab71
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2335 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
31 lines
676 B
JavaScript
31 lines
676 B
JavaScript
var noderange="";
|
|
function updatenoderange() {
|
|
myselection=nrtree.selected_arr;
|
|
noderange="";
|
|
for (node in myselection) {
|
|
noderange+=myselection[node][0].id;
|
|
}
|
|
noderange=noderange.substring(1);
|
|
}
|
|
|
|
$(document).ready(function() {
|
|
|
|
nrtree = new tree_component(); // -Tree begin
|
|
nrtree.init($("#nrtree"),{
|
|
rules: {
|
|
multiple: "Ctrl"
|
|
},
|
|
ui: {
|
|
animation: 250
|
|
},
|
|
callback : {
|
|
onchange : updatenoderange
|
|
},
|
|
data : {
|
|
type : "json",
|
|
async : "true",
|
|
url: "noderangesource.php"
|
|
}
|
|
}); //Tree finish
|
|
});
|