[DE mobile] Automatically open the hyperlink editing panel
This commit is contained in:
parent
0a58bc3fa2
commit
273c1be30d
|
@ -50,7 +50,8 @@ define([
|
||||||
DE.Controllers.EditContainer = Backbone.Controller.extend(_.extend((function() {
|
DE.Controllers.EditContainer = Backbone.Controller.extend(_.extend((function() {
|
||||||
// Private
|
// Private
|
||||||
var _settings = [],
|
var _settings = [],
|
||||||
_headerType = 1;
|
_headerType = 1,
|
||||||
|
_activeTab;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
models: [],
|
models: [],
|
||||||
|
@ -334,12 +335,17 @@ define([
|
||||||
});
|
});
|
||||||
|
|
||||||
Common.NotificationCenter.trigger('editcontainer:show');
|
Common.NotificationCenter.trigger('editcontainer:show');
|
||||||
|
|
||||||
|
if (_activeTab === 'edit-link') {
|
||||||
|
uiApp.showTab('#' + _activeTab, false);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// API handlers
|
// API handlers
|
||||||
|
|
||||||
onApiFocusObject: function (objects) {
|
onApiFocusObject: function (objects) {
|
||||||
_settings = [];
|
_settings = [];
|
||||||
|
_activeTab = undefined;
|
||||||
|
|
||||||
// Paragraph : 0,
|
// Paragraph : 0,
|
||||||
// Table : 1,
|
// Table : 1,
|
||||||
|
@ -368,6 +374,9 @@ define([
|
||||||
}
|
}
|
||||||
} else if (Asc.c_oAscTypeSelectElement.Hyperlink == type) {
|
} else if (Asc.c_oAscTypeSelectElement.Hyperlink == type) {
|
||||||
_settings.push('hyperlink');
|
_settings.push('hyperlink');
|
||||||
|
if (_.isUndefined(_activeTab)) {
|
||||||
|
_activeTab = 'edit-link';
|
||||||
|
}
|
||||||
} else if (Asc.c_oAscTypeSelectElement.Header == type) {
|
} else if (Asc.c_oAscTypeSelectElement.Header == type) {
|
||||||
_settings.push('header');
|
_settings.push('header');
|
||||||
_headerType = object.get_ObjectValue().get_Type();
|
_headerType = object.get_ObjectValue().get_Type();
|
||||||
|
|
Loading…
Reference in a new issue