X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/1c9098d6313e24c7fd873859c7e10b81452f4bec..b363e4352ce32f4518b5e5bb794635074d5f6ba6:/project/static/js/views/xml.js?ds=sidebyside diff --git a/project/static/js/views/xml.js b/project/static/js/views/xml.js index 9de8d2a1..fd670401 100644 --- a/project/static/js/views/xml.js +++ b/project/static/js/views/xml.js @@ -33,14 +33,13 @@ var XMLView = View.extend({ .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)