fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Poprawienie przycisku "wersja do druku"
[redakcja.git]
/
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
aead0e7
..
6dbddd9
100644
(file)
--- a/
project/static/js/views/panel_container.js
+++ b/
project/static/js/views/panel_container.js
@@
-19,17
+19,22
@@
var PanelContainerView = View.extend({
selectChanged: function(event) {
var value = $('select', this.element.get(0)).val();
var klass = panels[value];
selectChanged: function(event) {
var value = $('select', this.element.get(0)).val();
var klass = panels[value];
+
if (this.contentView) {
this.contentView.dispose();
this.contentView = null;
}
if (this.contentView) {
this.contentView.dispose();
this.contentView = null;
}
+
+ if( value != 'empty') {
this.contentView = new klass($('.content-view',
this.element.get(0)), this.model.contentModels[value], this);
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);
+ $('.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();
}
},