mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(view) rm FocusWas
This commit is contained in:
parent
0a983e6f7f
commit
3f39e4ac11
1 changed files with 1 additions and 8 deletions
|
|
@ -8,7 +8,6 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
function ViewProto(CallBack) {
|
||||
var Name = 'View',
|
||||
Loading = false,
|
||||
FocusWas = false,
|
||||
Events = DOM.Events,
|
||||
Info = DOM.CurrentInfo,
|
||||
Key = CloudCmd.Key,
|
||||
|
|
@ -28,16 +27,10 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
hideOverlay();
|
||||
},
|
||||
afterShow : function(callback) {
|
||||
if (!FocusWas) {
|
||||
Element.focus();
|
||||
FocusWas = true;
|
||||
}
|
||||
|
||||
Element.focus();
|
||||
Util.exec(callback);
|
||||
},
|
||||
afterClose : function(callback) {
|
||||
FocusWas = false;
|
||||
|
||||
Util.exec(callback);
|
||||
},
|
||||
fitToView : true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue