More UTF-8 vs. mercurial vs. os.listdir problems.
[redakcja.git] / project / static / js / views / panel_container.js
index 8d383e1..af067a3 100644 (file)
@@ -23,9 +23,12 @@ var PanelContainerView = View.extend({
       this.contentView.dispose();
       this.contentView = null;
     }
       this.contentView.dispose();
       this.contentView = null;
     }
+
+    if( value != 'empty') {
     this.contentView = new klass($('.content-view', 
       this.element.get(0)), this.model.contentModels[value], this);
     $('.panel-main-toolbar .refresh', this.element.get(0)).attr('disabled', null);
     this.contentView = new klass($('.content-view', 
       this.element.get(0)), this.model.contentModels[value], this);
     $('.panel-main-toolbar .refresh', this.element.get(0)).attr('disabled', null);
+    }
   },
   
   refreshButtonClicked: function(event) {
   },
   
   refreshButtonClicked: function(event) {