[DE mobile] Automatically open the hyperlink editing panel

This commit is contained in:
JuliaSvinareva 2020-04-16 17:55:50 +03:00
parent 0a58bc3fa2
commit 273c1be30d

View file

@ -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();