]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl update view when client change
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 24 Nov 2007 12:42:06 +0000 (12:42 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sat, 24 Nov 2007 12:42:06 +0000 (12:42 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5978 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/html/bresto.js

index e2ff595a9dceb78cd5eba193ca43a702dcf21843..da24405b59276afc23e7304853ecb4beb0fc930d 100644 (file)
@@ -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;