mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fixed bug parent object of function hide
This commit is contained in:
parent
2b545346d9
commit
4429e2a3e9
1 changed files with 14 additions and 17 deletions
|
|
@ -76,23 +76,20 @@ CloudCommander.Editor.CloudMirror = {
|
|||
|
||||
lCloudEditor &&
|
||||
(lCloudEditor.className = '');
|
||||
}),
|
||||
|
||||
|
||||
|
||||
|
||||
hide :(function() {
|
||||
CloudCommander.keyBinded = true;
|
||||
|
||||
var lLeft = this.getById('left');
|
||||
var lCloudEditor = this.getById('CloudEditor');
|
||||
|
||||
lCloudEditor &&
|
||||
(lCloudEditor.className = 'hidden');
|
||||
|
||||
lLeft &&
|
||||
(lLeft.className = 'panel');
|
||||
}),
|
||||
}),
|
||||
hide :(function(pParent) {
|
||||
return function(){
|
||||
CloudCommander.keyBinded = true;
|
||||
|
||||
var lLeft = pParent.getById('left');
|
||||
var lCloudEditor = pParent.getById('CloudEditor');
|
||||
|
||||
lCloudEditor &&
|
||||
(lCloudEditor.className = 'hidden');
|
||||
|
||||
lLeft &&
|
||||
(lLeft.className = 'panel');
|
||||
}}),
|
||||
getById: function(pId){return document.getElementById(pId);}
|
||||
};
|
||||
CloudCommander.Editor.Keys = (function(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue