X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/9a96182c20b31868159f4ddd25bbb46abc4173e3..4f9f0e6fbf1be3805f9995c536a583eda1260bee:/project/static/js/views/panel_container.js?ds=sidebyside diff --git a/project/static/js/views/panel_container.js b/project/static/js/views/panel_container.js index 8d383e1a..af067a3d 100644 --- a/project/static/js/views/panel_container.js +++ b/project/static/js/views/panel_container.js @@ -23,9 +23,12 @@ var PanelContainerView = View.extend({ 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); + } }, refreshButtonClicked: function(event) {