Commit 180b21a8 authored by Alexander Yuzhin's avatar Alexander Yuzhin

[DE mobile] Fixed display context menu items.

parent 9492ea3d
......@@ -204,18 +204,21 @@ define([
};
if (!objectLocked && _isEdit) {
if (canCopy) {
menuItems.push({
caption: me.menuCut,
event: 'cut'
});
// Swap 'Copy' and 'Cut'
swapItems(menuItems, 0, 1);
}
menuItems.push({
caption: me.menuPaste,
event: 'paste'
});
// Swap 'Copy' and 'Cut'
swapItems(menuItems, 0, 1);
menuItems.push({
caption: me.menuDelete,
event: 'delete'
......@@ -225,17 +228,15 @@ define([
caption: me.menuEdit,
event: 'edit'
});
}
var text = me.api.can_AddHyperlink();
if (!_.isEmpty(text)) {
if (!_.isEmpty(me.api.can_AddHyperlink())) {
menuItems.push({
caption: me.menuAddLink,
event: 'addlink'
});
}
}
}
if (Common.SharedSettings.get('phone') && menuItems.length > 3) {
menuItems = menuItems.slice(0, 3);
......
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