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) {
menuItems.push({
caption: me.menuCut,
event: 'cut'
});
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,15 +228,13 @@ define([
caption: me.menuEdit,
event: 'edit'
});
}
var text = me.api.can_AddHyperlink();
if (!_.isEmpty(text)) {
menuItems.push({
caption: me.menuAddLink,
event: 'addlink'
});
if (!_.isEmpty(me.api.can_AddHyperlink())) {
menuItems.push({
caption: me.menuAddLink,
event: 'addlink'
});
}
}
}
......
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