$(document).bind('xml-scroll-request', this.scrollCallback);
this.parent.freeze('Ładowanie edytora...');
$(document).bind('xml-scroll-request', this.scrollCallback);
this.parent.freeze('Ładowanie edytora...');
this.editor = new CodeMirror($('.xmlview', this.element).get(0), {
parserfile: 'parsexml.js',
this.editor = new CodeMirror($('.xmlview', this.element).get(0), {
parserfile: 'parsexml.js',
- path: "/static/js/lib/codemirror/",
- stylesheet: "/static/css/xmlcolors.css",
+ path: documentInfo.staticURL + "js/lib/codemirror/",
+ stylesheet: documentInfo.staticURL + "css/xmlcolors.css",
onChange: this.editorDataChanged.bind(this),
initCallback: this.editorDidLoad.bind(this)
});
onChange: this.editorDataChanged.bind(this),
initCallback: this.editorDidLoad.bind(this)
});
this.model
.addObserver(this, 'data', this.modelDataChanged.bind(this))
.addObserver(this, 'state', this.modelStateChanged.bind(this))
this.model
.addObserver(this, 'data', this.modelDataChanged.bind(this))
.addObserver(this, 'state', this.modelStateChanged.bind(this))
this.editor.setCode(this.model.get('data'));
this.modelStateChanged('state', this.model.get('state'));
this.editor.setCode(this.model.get('data'));
this.modelStateChanged('state', this.model.get('state'));
} else if (value == 'unsynced') {
this.freeze('Niezsynchronizowany...');
} else if (value == 'loading') {
} else if (value == 'unsynced') {
this.freeze('Niezsynchronizowany...');
} else if (value == 'loading') {
} else if (value == 'saving') {
this.freeze('Zapisywanie...');
} else if (value == 'error') {
} else if (value == 'saving') {
this.freeze('Zapisywanie...');
} else if (value == 'error') {