X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/a3a778ec7c2fe89c4cb48f42be3b0821530199d8..3669f00df3636d92c7de6fb0c7ebeac89150e5fe:/project/static/js/views/panel_container.js diff --git a/project/static/js/views/panel_container.js b/project/static/js/views/panel_container.js index aead0e77..af067a3d 100644 --- a/project/static/js/views/panel_container.js +++ b/project/static/js/views/panel_container.js @@ -23,13 +23,17 @@ 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) { if (this.contentView) { + console.log('refreshButtonClicked'); this.contentView.reload(); } },