This commit is contained in:
Alejandro Gallardo Escobar 2014-12-17 19:46:33 +01:00
parent a9b096131d
commit a098b2f659

View File

@ -28,6 +28,7 @@ TreeController = {
ajaxURL: "ajax.php",
ajaxPage: "include/ajax/tree.ajax",
detailRecipient: '',
filter: {},
reload: function () {
// Bad recipient
if (typeof this.recipient == 'undefined' || this.recipient.length == 0) {
@ -159,7 +160,8 @@ TreeController = {
page: controller.ajaxPage,
getChildren: 1,
id: element.id,
type: element.type
type: element.type,
filter: controller.filter
},
complete: function(xhr, textStatus) {
$node.removeClass("leaf-loading");
@ -255,6 +257,9 @@ TreeController = {
if (typeof data.ajaxPage != 'undefined' && data.ajaxPage.length > 0) {
this.ajaxPage = data.ajaxPage;
}
if (typeof data.filter != 'undefined' && data.filter.length > 0) {
this.filter = data.filter;
}
this.index = TreeController.controllers.push(this) - 1;
this.load();