mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 18:23:35 +00:00
refactored
This commit is contained in:
parent
1fa39b2389
commit
ef1ab0ef86
5 changed files with 34 additions and 41 deletions
|
|
@ -23,13 +23,12 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
*/
|
||||
function showEditor(pReadOnly){
|
||||
DOM.Images.showLoad();
|
||||
var lEditor = CloudCmd[pReadOnly ? 'Viewer' : 'Editor'],
|
||||
lResult = Util.exec(lEditor, pReadOnly);
|
||||
|
||||
var lEditor = CloudCmd[pReadOnly ? 'View' : 'Edit'],
|
||||
lResult = Util.exec(lEditor);
|
||||
|
||||
if(!lResult){
|
||||
lEditor = lEditor.get();
|
||||
if(lEditor)
|
||||
Util.exec(lEditor.show);
|
||||
Util.exec(lEditor.show);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue