fix(menu) when click on ".." show full menu

This commit is contained in:
coderaiser 2017-10-19 13:56:47 +03:00
parent 742ec385e1
commit ebc09c5be2

View file

@ -68,21 +68,40 @@ function MenuProto(Position) {
return {
x: position.x,
y: position.y,
}
};
if (Position)
return {
x: Position.x,
y: Position.y,
}
};
if (position)
return {
x: position.x,
y: position.y,
}
};
return getCurrentPosition();
};
}
function getMenuNameByEl(el) {
if (!el)
return 'context';
const name = DOM.getCurrentName(el);
if (name === '..')
return 'context';
return 'contextFile';
}
function getMenuByName(name) {
if (name === 'context')
return MenuContext;
return MenuContextFile;
}
function getMenuNameByEl(el) {
if (!el)