Javascript arborescence ok
This commit is contained in:
parent
16127bd775
commit
cf50bc0374
@ -128,14 +128,19 @@ $(document).ready(function(){
|
||||
},
|
||||
buttons: {
|
||||
Valider: function() {
|
||||
alert('ok');
|
||||
alert($('.jstree').get_checked ( null, true));
|
||||
var key = $('div.jstree').attr('id');
|
||||
var elements = [];
|
||||
$('#'+key).jstree("get_checked").each(function(){
|
||||
elements.push(this.id);
|
||||
});
|
||||
set(key, elements.join(","));
|
||||
$(this).dialog('close');
|
||||
},
|
||||
Annuler: function() { $(this).dialog('close'); }
|
||||
Fermer: function() { $(this).dialog('close'); }
|
||||
},
|
||||
close: function() { $('#dialognaf').remove(); }
|
||||
close: function() { $('#dialogtree').remove(); }
|
||||
};
|
||||
$('<div id="dialognaf"></div>').dialog(dialogOpts);
|
||||
$('<div id="dialogtree"></div>').dialog(dialogOpts);
|
||||
return false;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user