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