refactored

This commit is contained in:
coderaiser 2013-06-04 07:34:28 -04:00
parent 1fa39b2389
commit ef1ab0ef86
5 changed files with 34 additions and 41 deletions

View file

@ -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);
}
}