From ca686ca2f0cc747bcc24d5d0a9935959264ec8d7 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 24 Nov 2007 12:42:06 +0000 Subject: [PATCH] ebl update view when client change git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5978 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bweb/html/bresto.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gui/bweb/html/bresto.js b/gui/bweb/html/bresto.js index e2ff595a9d..da24405b59 100644 --- a/gui/bweb/html/bresto.js +++ b/gui/bweb/html/bresto.js @@ -107,7 +107,7 @@ function ext_init() // set the root node var root = new Ext.tree.AsyncTreeNode({ - text: 'Select a job', + text: 'Select a client then a job', draggable:false, id:'source' }); @@ -473,6 +473,16 @@ function ext_init() client_combo.on('valid', function(e) { Ext.brestore.client = e.getValue(); + Ext.brestore.jobid=0; + Ext.brestore.jobdate = ''; + Ext.brestore.root_path=''; + job_combo.clearValue(); + file_store.removeAll(); + file_versions_store.removeAll(); + root.collapse(false, false); + while(root.firstChild){ + root.removeChild(root.firstChild); + } job_store.load( {params:{action: 'list_job', client:Ext.brestore.client}}); return true; -- 2.39.5