Commit 15d09b07 authored by Alexander Yuzhin's avatar Alexander Yuzhin

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

parent e09e52be
...@@ -86,6 +86,7 @@ define([ ...@@ -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([ ...@@ -259,6 +260,10 @@ define([
} }
}, },
onApiDocumentContentReady: function () {
_view = this.createView('DocumentHolder').render();
},
// Internal // Internal
_openLink: function(url) { _openLink: function(url) {
......
...@@ -68,7 +68,10 @@ define([ ...@@ -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;
}, },
......
...@@ -77,8 +77,9 @@ define([ ...@@ -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([ ...@@ -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) {
......
...@@ -68,7 +68,9 @@ define([ ...@@ -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;
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment