[VE] Refactoring

This commit is contained in:
Julia Radzhabova
2024-11-15 22:20:55 +03:00
parent ae921117ae
commit 9d1cc7fd26
2 changed files with 0 additions and 16 deletions

View File

@ -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));

View File

@ -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));