[DE/PE mobile] Fixed display context menu for deploy version.
This commit is contained in:
parent
e09e52be93
commit
15d09b0733
|
@ -86,6 +86,7 @@ define([
|
|||
me.api.asc_registerCallback('asc_onHideForeignCursorLabel', _.bind(me.onApiHideForeignCursorLabel, me));
|
||||
me.api.asc_registerCallback('asc_onAuthParticipantsChanged',_.bind(me.onApiUsersChanged, me));
|
||||
me.api.asc_registerCallback('asc_onConnectionStateChanged', _.bind(me.onApiUserConnection, me));
|
||||
me.api.asc_registerCallback('asc_onDocumentContentReady', _.bind(me.onApiDocumentContentReady, me));
|
||||
me.api.asc_coAuthoringGetUsers();
|
||||
},
|
||||
|
||||
|
@ -259,6 +260,10 @@ define([
|
|||
}
|
||||
},
|
||||
|
||||
onApiDocumentContentReady: function () {
|
||||
_view = this.createView('DocumentHolder').render();
|
||||
},
|
||||
|
||||
// Internal
|
||||
|
||||
_openLink: function(url) {
|
||||
|
|
|
@ -68,7 +68,10 @@ define([
|
|||
// Render layout
|
||||
render: function() {
|
||||
var el = $(this.el);
|
||||
el.append(this.template({}));
|
||||
|
||||
if (el.length > 0 && el.find('#' + _anchorId).length < 1) {
|
||||
el.append(this.template());
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
|
|
|
@ -77,8 +77,9 @@ define([
|
|||
|
||||
me.api = api;
|
||||
|
||||
me.api.asc_registerCallback('asc_onShowPopMenu', _.bind(me.onApiShowPopMenu, me));
|
||||
me.api.asc_registerCallback('asc_onHidePopMenu', _.bind(me.onApiHidePopMenu, me));
|
||||
me.api.asc_registerCallback('asc_onShowPopMenu', _.bind(me.onApiShowPopMenu, me));
|
||||
me.api.asc_registerCallback('asc_onHidePopMenu', _.bind(me.onApiHidePopMenu, me));
|
||||
me.api.asc_registerCallback('asc_onDocumentContentReady', _.bind(me.onApiDocumentContentReady, me));
|
||||
},
|
||||
|
||||
setMode: function (mode) {
|
||||
|
@ -161,6 +162,10 @@ define([
|
|||
_view && _view.hideMenu();
|
||||
},
|
||||
|
||||
onApiDocumentContentReady: function () {
|
||||
_view = this.createView('DocumentHolder').render();
|
||||
},
|
||||
|
||||
// Internal
|
||||
|
||||
_openLink: function(url) {
|
||||
|
|
|
@ -68,7 +68,9 @@ define([
|
|||
// Render layout
|
||||
render: function() {
|
||||
var el = $(this.el);
|
||||
el.append(this.template({}));
|
||||
if (el.length > 0 && el.find('#' + _anchorId).length < 1) {
|
||||
el.append(this.template());
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue