mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
[VE] Refactoring
This commit is contained in:
@ -473,16 +473,6 @@ define([
|
||||
}
|
||||
},
|
||||
|
||||
onProcessSaveResult: function(data) {
|
||||
this.api.asc_OnSaveEnd(data.result);
|
||||
if (data && data.result === false) {
|
||||
Common.UI.error({
|
||||
title: this.criticalErrorTitle,
|
||||
msg : _.isEmpty(data.message) ? this.errorProcessSaveResult : data.message
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
onProcessRightsChange: function(data) {
|
||||
if (data && data.enabled === false) {
|
||||
var me = this,
|
||||
@ -974,7 +964,6 @@ define([
|
||||
Common.component.Analytics.initialize('UA-12442749-13', 'Visio Editor');
|
||||
|
||||
Common.Gateway.on('applyeditrights', _.bind(me.onApplyEditRights, me));
|
||||
// Common.Gateway.on('processsaveresult', _.bind(me.onProcessSaveResult, me));
|
||||
Common.Gateway.on('processrightschange', _.bind(me.onProcessRightsChange, me));
|
||||
Common.Gateway.on('processmouse', _.bind(me.onProcessMouse, me));
|
||||
Common.Gateway.on('downloadas', _.bind(me.onDownloadAs, me));
|
||||
|
||||
@ -98,10 +98,6 @@ define([
|
||||
me.header.btnPrint.setDisabled(state);
|
||||
if ( me.header.btnPrintQuick )
|
||||
me.header.btnPrintQuick.setDisabled(state);
|
||||
},
|
||||
'save:disabled' : function (state) {
|
||||
if ( me.header.btnSave )
|
||||
me.header.btnSave.setDisabled(state);
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -194,7 +190,6 @@ define([
|
||||
$filemenu.css('top', (Common.UI.LayoutManager.isElementVisible('toolbar') ? _tabs_new_height : 0) + _intvars.get('document-title-height'));
|
||||
|
||||
toolbar = me.getApplication().getController('Toolbar').getView('Toolbar');
|
||||
toolbar.btnCollabChanges = me.header.btnSave;
|
||||
}
|
||||
|
||||
me.header.btnSearch.on('toggle', me.onSearchToggle.bind(this));
|
||||
|
||||
Reference in New Issue
Block a user