$('.xmlview', this.element).height(height);
},
+ reload: function() {
+ this.model.load(true);
+ },
+
editorDidLoad: function(editor) {
$(editor.frame).css({width: '100%', height: '100%'});
this.model
},
modelDataChanged: function(property, value) {
- console.log('modelDataChanged');
if (this.editor.getCode() != value) {
this.editor.setCode(value);
}
this.freeze('Ćadowanie...');
} else if (value == 'saving') {
this.freeze('Zapisywanie...');
+ } else if (value == 'error') {
+ this.freeze(this.model.get('error'));
}
},