Merge pull request #1551 from ONLYOFFICE/fix/for-hotfix
[DE] Fix right panel
This commit is contained in:
commit
501ef41868
|
@ -131,6 +131,10 @@ define([
|
||||||
this.rightmenu.fireEvent('editcomplete', this.rightmenu);
|
this.rightmenu.fireEvent('editcomplete', this.rightmenu);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onApiFocusObject: function(SelectedObjects) {
|
||||||
|
this.onFocusObject(SelectedObjects);
|
||||||
|
},
|
||||||
|
|
||||||
onFocusObject: function(SelectedObjects, forceSignature) {
|
onFocusObject: function(SelectedObjects, forceSignature) {
|
||||||
if (!this.editMode && !forceSignature)
|
if (!this.editMode && !forceSignature)
|
||||||
return;
|
return;
|
||||||
|
@ -339,7 +343,7 @@ define([
|
||||||
createDelayedElements: function() {
|
createDelayedElements: function() {
|
||||||
var me = this;
|
var me = this;
|
||||||
if (this.api) {
|
if (this.api) {
|
||||||
this.api.asc_registerCallback('asc_onFocusObject', _.bind(this.onFocusObject, this));
|
this.api.asc_registerCallback('asc_onFocusObject', _.bind(this.onApiFocusObject, this));
|
||||||
this.api.asc_registerCallback('asc_doubleClickOnObject', _.bind(this.onDoubleClickOnObject, this));
|
this.api.asc_registerCallback('asc_doubleClickOnObject', _.bind(this.onDoubleClickOnObject, this));
|
||||||
if (this.rightmenu.mergeSettings) {
|
if (this.rightmenu.mergeSettings) {
|
||||||
this.rightmenu.mergeSettings.setDocumentName(this.getApplication().getController('Viewport').getView('Common.Views.Header').getDocumentCaption());
|
this.rightmenu.mergeSettings.setDocumentName(this.getApplication().getController('Viewport').getView('Common.Views.Header').getDocumentCaption());
|
||||||
|
|
Loading…
Reference in a new issue