From c47622ae59f4f1ac5d4a9e789af0c50435074fa8 Mon Sep 17 00:00:00 2001 From: Bjverde Date: Mon, 23 Jan 2023 15:18:01 -0300 Subject: [PATCH] =?UTF-8?q?:abc:=20BASE=20#216=20melhorando=20fun=C3=A7?= =?UTF-8?q?=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/js/FormDin4.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/base/js/FormDin4.js b/base/js/FormDin4.js index 49e6dbca..55121802 100644 --- a/base/js/FormDin4.js +++ b/base/js/FormDin4.js @@ -4312,10 +4312,17 @@ function fwExportGrid2Excel(dadosJson) // funções Genéricas para utilização com dhtmlx Tree function fwTreeAddLoading(tree,id) { - if( id ) - { - if( !tree.getIndexById(id+'loading') ) - { + fwTreeViewAddLoading(tree,id); +} +/** + * funções Genéricas para utilização com dhtmlx TreeView + * @param {*} tree + * @param {*} id + */ +function fwTreeViewAddLoading(tree,id) +{ + if( id ){ + if( !tree.getIndexById(id+'loading') ){ tree.insertNewChild(id,id+'_loading','Carregando...',0,'loader.gif',0,0,'SELECT'); tree.setItemStyle(id+'_loading','color:#FFFFC0;background-color:#969696'); //tree.setItemStyle(id+'_loading','background-color:#969696');