From b29783f6fedd194f945f057027e6a172242db633 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Thu, 18 Dec 2014 11:50:11 +0100 Subject: [PATCH] Now the tree dissapear when a new search is done --- pandora_console/operation/tree2.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_console/operation/tree2.php b/pandora_console/operation/tree2.php index 3e12011356..34ffbb1e02 100644 --- a/pandora_console/operation/tree2.php +++ b/pandora_console/operation/tree2.php @@ -143,6 +143,10 @@ echo ""; }); function processTreeSearch () { + // Clear the tree + if (typeof treeController.recipient != 'undefined' && treeController.recipient.length > 0) + treeController.recipient.empty(); + $(".loading_tree").show(); var parameters = {};