[DE/PE mobile] Fixed display context menu for deploy version.

This commit is contained in:
Alexander Yuzhin 2017-02-03 11:42:53 +03:00
parent e09e52be93
commit 15d09b0733
4 changed files with 19 additions and 4 deletions

View file

@ -86,6 +86,7 @@ define([
me.api.asc_registerCallback('asc_onHideForeignCursorLabel', _.bind(me.onApiHideForeignCursorLabel, me)); 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_onAuthParticipantsChanged',_.bind(me.onApiUsersChanged, me));
me.api.asc_registerCallback('asc_onConnectionStateChanged', _.bind(me.onApiUserConnection, 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(); me.api.asc_coAuthoringGetUsers();
}, },
@ -259,6 +260,10 @@ define([
} }
}, },
onApiDocumentContentReady: function () {
_view = this.createView('DocumentHolder').render();
},
// Internal // Internal
_openLink: function(url) { _openLink: function(url) {

View file

@ -68,7 +68,10 @@ define([
// Render layout // Render layout
render: function() { render: function() {
var el = $(this.el); var el = $(this.el);
el.append(this.template({}));
if (el.length > 0 && el.find('#' + _anchorId).length < 1) {
el.append(this.template());
}
return this; return this;
}, },

View file

@ -77,8 +77,9 @@ define([
me.api = api; me.api = api;
me.api.asc_registerCallback('asc_onShowPopMenu', _.bind(me.onApiShowPopMenu, 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_onHidePopMenu', _.bind(me.onApiHidePopMenu, me));
me.api.asc_registerCallback('asc_onDocumentContentReady', _.bind(me.onApiDocumentContentReady, me));
}, },
setMode: function (mode) { setMode: function (mode) {
@ -161,6 +162,10 @@ define([
_view && _view.hideMenu(); _view && _view.hideMenu();
}, },
onApiDocumentContentReady: function () {
_view = this.createView('DocumentHolder').render();
},
// Internal // Internal
_openLink: function(url) { _openLink: function(url) {

View file

@ -68,7 +68,9 @@ define([
// Render layout // Render layout
render: function() { render: function() {
var el = $(this.el); var el = $(this.el);
el.append(this.template({})); if (el.length > 0 && el.find('#' + _anchorId).length < 1) {
el.append(this.template());
}
return this; return this;
}, },