X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f46d9319a26b5cf74fcf5aa24a5a8df18f1bda74..b363e4352ce32f4518b5e5bb794635074d5f6ba6:/project/static/js/views/xml.js 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)