[PE] Fix Bug 32042.
This commit is contained in:
parent
b3e6c31393
commit
7dc8c7534b
|
@ -188,12 +188,19 @@ define([
|
||||||
|
|
||||||
var onFocusObject = function(selectedElements) {
|
var onFocusObject = function(selectedElements) {
|
||||||
if (me.mode.isEdit && me.currentMenu && me.currentMenu.isVisible()){
|
if (me.mode.isEdit && me.currentMenu && me.currentMenu.isVisible()){
|
||||||
var obj = fillMenuProps(selectedElements);
|
if (me.api.asc_getCurrentFocusObject() === 0 ){ // thumbnails
|
||||||
if (obj) {
|
if (me.slideMenu===me.currentMenu) {
|
||||||
if (obj.menu_to_show===me.currentMenu) {
|
me.currentMenu.options.initMenu({isSlideSelect: me.slideMenu.items[2].isVisible(), fromThumbs: true});
|
||||||
me.currentMenu.options.initMenu(obj.menu_props);
|
|
||||||
me.currentMenu.alignPosition();
|
me.currentMenu.alignPosition();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
var obj = fillMenuProps(selectedElements);
|
||||||
|
if (obj) {
|
||||||
|
if (obj.menu_to_show===me.currentMenu) {
|
||||||
|
me.currentMenu.options.initMenu(obj.menu_props);
|
||||||
|
me.currentMenu.alignPosition();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue