diff --git a/apps/documenteditor/mobile/app/controller/edit/EditContainer.js b/apps/documenteditor/mobile/app/controller/edit/EditContainer.js index e9196532d..fd9f13176 100644 --- a/apps/documenteditor/mobile/app/controller/edit/EditContainer.js +++ b/apps/documenteditor/mobile/app/controller/edit/EditContainer.js @@ -50,7 +50,8 @@ define([ DE.Controllers.EditContainer = Backbone.Controller.extend(_.extend((function() { // Private var _settings = [], - _headerType = 1; + _headerType = 1, + _activeTab; return { models: [], @@ -334,12 +335,17 @@ define([ }); Common.NotificationCenter.trigger('editcontainer:show'); + + if (_activeTab === 'edit-link') { + uiApp.showTab('#' + _activeTab, false); + } }, // API handlers onApiFocusObject: function (objects) { _settings = []; + _activeTab = undefined; // Paragraph : 0, // Table : 1, @@ -368,6 +374,9 @@ define([ } } else if (Asc.c_oAscTypeSelectElement.Hyperlink == type) { _settings.push('hyperlink'); + if (_.isUndefined(_activeTab)) { + _activeTab = 'edit-link'; + } } else if (Asc.c_oAscTypeSelectElement.Header == type) { _settings.push('header'); _headerType = object.get_ObjectValue().get_Type();