mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixes
This commit is contained in:
parent
a9b096131d
commit
a098b2f659
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user