minor changes

This commit is contained in:
coderaiser 2013-05-21 09:22:39 -04:00
parent 293cb32e6e
commit 5765025f8f

View file

@ -931,7 +931,8 @@ var CloudCmd, Util, DOM, CloudFunc;
};
},
CmdProto = function(){
var CURRENT_FILE = 'current-file',
var Cmd = this,
CURRENT_FILE = 'current-file',
SELECTED_FILE = 'selected-file',
Title;
@ -1663,13 +1664,13 @@ var CloudCmd, Util, DOM, CloudFunc;
* @pCurrent
*/
this.renameCurrent = function(pCurrentFile){
if( !this.isCurrentFile(pCurrentFile) )
if( !Cmd.isCurrentFile(pCurrentFile) )
pCurrentFile = null;
var lCurrent = pCurrentFile || this.getCurrentFile(),
lFrom = this.getCurrentName(lCurrent),
var lCurrent = pCurrentFile || Cmd.getCurrentFile(),
lFrom = Cmd.getCurrentName(lCurrent),
lTo = prompt('Rename', lFrom) || lFrom,
lDirPath = this.getCurrentDirPath();
lDirPath = Cmd.getCurrentDirPath();
if( !Util.strCmp(lFrom, lTo) ){
var lFiles = {