init: function(element, model, template) {
this._super(element, model, template);
- this.model.load();
this.quickSaveButton = $('#action-quick-save', this.element).bind('click.editorview', this.quickSave.bind(this));
this.commitButton = $('#action-commit', this.element).bind('click.editorview', this.commit.bind(this));
this.model.addObserver(this, 'state', this.modelStateChanged.bind(this));
this.modelStateChanged('state', this.model.get('state'));
-
+
// Inicjalizacja okien jQuery Modal
$('#commit-dialog', this.element).
jqm({
// onShow: $.fbind(self, self.loadSplitDialog)
// }).
// jqmAddClose('button.dialog-close-button');
+
+ this.model.load();
},
quickSave: function(event) {
- this.model.updateDirtyContentModel();
+ this.model.saveDirtyContentModel();
},
commit: function(event) {