mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(edit) setMenu
This commit is contained in:
parent
86b6b8ed50
commit
90ff40fbf0
1 changed files with 8 additions and 6 deletions
|
|
@ -228,12 +228,14 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO, Format;
|
|||
}
|
||||
};
|
||||
|
||||
if (error) {
|
||||
Dialog.alert(TITLE, error);
|
||||
} else if (!Menu && MenuIO) {
|
||||
Menu = new MenuIO(Element, options, menuData);
|
||||
Menu.show(position.x, position.y);
|
||||
}
|
||||
if (error)
|
||||
return Dialog.alert(TITLE, error);
|
||||
|
||||
if (Menu || !MenuIO)
|
||||
return;
|
||||
|
||||
Menu = new MenuIO(Element, options, menuData);
|
||||
Menu.show(position.x, position.y);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue