mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
minor changes
This commit is contained in:
parent
293cb32e6e
commit
5765025f8f
1 changed files with 6 additions and 5 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue