mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch 'ent-7285-No-aparece-mensaje-en-el-TreeView-al-filtrar' into 'develop'
Ent 7285 no aparece mensaje en el tree view al filtrar See merge request artica/pandorafms!4018
This commit is contained in:
commit
77a1de6b1b
@ -356,6 +356,10 @@ enterprise_hook('close_meta_frame');
|
|||||||
if (data.success) {
|
if (data.success) {
|
||||||
$(".loading_tree").hide();
|
$(".loading_tree").hide();
|
||||||
var foundMessage = '';
|
var foundMessage = '';
|
||||||
|
if (data.tree.length === 0) {
|
||||||
|
foundMessage = "<?php echo __('No data found'); ?>";
|
||||||
|
$("div#tree-controller-recipient").append(foundMessage);
|
||||||
|
} else {
|
||||||
switch (parameters['type']) {
|
switch (parameters['type']) {
|
||||||
case 'policies':
|
case 'policies':
|
||||||
foundMessage = "<?php echo __('Policies found'); ?>";
|
foundMessage = "<?php echo __('Policies found'); ?>";
|
||||||
@ -377,6 +381,8 @@ enterprise_hook('close_meta_frame');
|
|||||||
foundMessage = "<?php echo __('Groups found'); ?>";
|
foundMessage = "<?php echo __('Groups found'); ?>";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
treeController.init({
|
treeController.init({
|
||||||
recipient: $("div#tree-controller-recipient"),
|
recipient: $("div#tree-controller-recipient"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user