Skip to content

Commit

Permalink
[VE] Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Nov 15, 2024
1 parent ae92111 commit 9d1cc7f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
11 changes: 0 additions & 11 deletions apps/visioeditor/main/app/controller/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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));
Expand Down
5 changes: 0 additions & 5 deletions apps/visioeditor/main/app/controller/Viewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
});
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 9d1cc7f

Please sign in to comment.