More UTF-8 vs. mercurial vs. os.listdir problems.
[redakcja.git] / project / static / js / views / panel_container.js
index aead0e7..af067a3 100644 (file)
@@ -23,13 +23,17 @@ 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) {
     if (this.contentView) {
   },
   
   refreshButtonClicked: function(event) {
     if (this.contentView) {
+      console.log('refreshButtonClicked');
       this.contentView.reload();
     }
   },
       this.contentView.reload();
     }
   },