Fixed dynamic east panel code
[htsworkflow.git] / htsworkflow / frontend / static / js / htsw.js
index d5829b3a0a59befa9b28554e1aa07e3c41dcfbac..8bbe43275aad8fc7b1d3011bc1b9061816d43459 100644 (file)
@@ -90,10 +90,19 @@ $(document).ready(function(){
        items: create_dynamic_panels().concat([panel_bcmagic])
     });
     
+    
+    
+    //-------------------------------
+    // East Region Setup
+    //-------------------------------
     var get_east_panel_content = function(){
       // East panel contentEl id is supplied in html div id of east_region_config.
       var east_id = Ext.fly('east_region_config').dom.textContent;
       
+      if (east_id.length == 0){
+       return east_id;
+      }
+      
       // If no element exists with the supplied content id, report and error.
       if (Ext.fly(east_id) == null){
        return 'east_region_config_error';