mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 01:47:35 +00:00
refactor(view) onOverlayClick
This commit is contained in:
parent
1fb90a2421
commit
7c3cd2258e
1 changed files with 7 additions and 4 deletions
|
|
@ -252,11 +252,14 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
|
||||
if (isOverlay && isChild) {
|
||||
DOM.hide(overlay);
|
||||
element = DOM.getCurrentByPosition(position);
|
||||
isCurrent = DOM.isCurrentFile(element);
|
||||
element = DOM.getCurrentByPosition(position);
|
||||
|
||||
if (!isCurrent)
|
||||
DOM.setCurrentFile(element);
|
||||
if (element) {
|
||||
isCurrent = DOM.isCurrentFile(element);
|
||||
|
||||
if (!isCurrent)
|
||||
DOM.setCurrentFile(element);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue