Browse Source

[beeswax] Stop infinite loop in navigator when there is no DB

Romain Rigaux 12 years ago
parent
commit
e0ebe6d
1 changed files with 5 additions and 3 deletions
  1. 5 3
      apps/beeswax/src/beeswax/templates/execute.mako

+ 5 - 3
apps/beeswax/src/beeswax/templates/execute.mako

@@ -546,9 +546,11 @@ ${layout.menubar(section='query')}
 
 
       resetNavigator = function () {
       resetNavigator = function () {
         var _db = $("#id_query-database").val();
         var _db = $("#id_query-database").val();
-        $.totalStorage('tables_' + _db, null);
-        $.totalStorage('timestamp_tables_' + _db, null);
-        renderNavigator();
+        if (_db != null) {
+          $.totalStorage('tables_' + _db, null);
+          $.totalStorage('timestamp_tables_' + _db, null);
+          renderNavigator();
+        }
       }
       }
 
 
       renderNavigator = function () {
       renderNavigator = function () {