mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(edit) close menu before close
This commit is contained in:
parent
dd3f0b133d
commit
cf2e9b8d31
1 changed files with 14 additions and 11 deletions
|
|
@ -58,18 +58,18 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
|
|||
not_append : true
|
||||
});
|
||||
|
||||
initAce();
|
||||
|
||||
Events.add({
|
||||
drop : onDrop,
|
||||
dragover : function(event) {
|
||||
event.preventDefault();
|
||||
},
|
||||
}, Element);
|
||||
initAce();
|
||||
|
||||
Events.add({
|
||||
drop : onDrop,
|
||||
dragover : function(event) {
|
||||
event.preventDefault();
|
||||
},
|
||||
}, Element);
|
||||
|
||||
setMenu(Element);
|
||||
}
|
||||
|
||||
setMenu(Element);
|
||||
|
||||
modesByName = Modelist.modesByName;
|
||||
|
||||
if (isDir)
|
||||
|
|
@ -93,7 +93,10 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
|
|||
|
||||
Ace.setValue(Value);
|
||||
CloudCmd.View.show(Element, {
|
||||
beforeClose: isChanged,
|
||||
beforeClose: function() {
|
||||
isChanged();
|
||||
Menu.hide();
|
||||
},
|
||||
afterShow: focus
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue