-/*globals Editor fileId SplitView PanelContainerView EditorView*/
+/*globals Editor fileId SplitView PanelContainerView EditorView FlashView messageCenter*/
var documentsUrl = '/api/documents/';
$.ajax({
url: this.serverURL,
- type: 'put',
+ type: 'post',
dataType: 'json',
data: payload,
success: this.updatingSucceeded.bind(this),
alert('erroneous state:', this.get('state'));
}
- $.log('galleries:', data);
+ console.log('galleries:', data);
if (data.length === 0) {
this.set('data', []);
} else {
- $.log('dupa');
+ console.log('dupa');
this.set('data', data[0].pages);
}
doc = new Editor.DocumentModel();
var editor = new EditorView('#body-wrap', doc);
editor.freeze();
+ var flashView = new FlashView('#flashview', messageCenter);
var splitView = new SplitView('#splitview', doc);
leftPanelView = new PanelContainerView('#left-panel-container', doc);
rightPanelContainer = new PanelContainerView('#right-panel-container', doc);