Editor.XMLModel = Editor.Model.extend({
_className: 'Editor.XMLModel',
serverURL: null,
+ data: '',
init: function(serverURL) {
this._super();
},
resized: function(event) {
- console.log('resized', this.description(), this.element);
if (this.frozen()) {
- console.log('css!');
this.overlay.css({
position: 'absolute',
width: this.element.width(),
height: this.element.height(),
top: this.element.position().top,
left: this.element.position().left
+ }).children('div').css({
+ position: 'relative',
+ top: this.overlay.height() / 2 - 20
});
}
},
.addObserver(this, 'synced', this.modelSyncChanged.bind(this));
this.parent.unfreeze();
-
+
+ this.editor.setCode(this.model.get('data'));
if (!this.model.get('synced')) {
this.parent.freeze('Niezsynchronizowany...');
this.model.load();
- } else {
- this.editor.setCode(this.model.get('data'));
}
-
+
// editor.grabKeys(
// $.fbind(self, self.hotkeyPressed),
// $.fbind(self, self.isHotkey)