mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(konsole) rm CloudFunc
This commit is contained in:
parent
6e9c509a4f
commit
f0456d15b9
1 changed files with 7 additions and 4 deletions
|
|
@ -1,10 +1,9 @@
|
|||
/* global CloudCmd */
|
||||
/* global Util */
|
||||
/* global DOM */
|
||||
/* global CloudFunc */
|
||||
/* global Console */
|
||||
|
||||
(function(CloudCmd, Util, DOM, CloudFunc) {
|
||||
(function(CloudCmd, Util, DOM) {
|
||||
'use strict';
|
||||
|
||||
CloudCmd.Konsole = ConsoleProto;
|
||||
|
|
@ -52,7 +51,7 @@
|
|||
var command = Console.getPromptText(),
|
||||
path = DOM.getCurrentDirPath();
|
||||
|
||||
path = CloudFunc.rmLastSlash(path);
|
||||
path = rmLastSlash(path);
|
||||
|
||||
command += path;
|
||||
Console.setPromptText(command);
|
||||
|
|
@ -60,6 +59,10 @@
|
|||
});
|
||||
}
|
||||
|
||||
function rmLastSlash(str) {
|
||||
return str.replace(/\/$/, '');
|
||||
}
|
||||
|
||||
this.show = function(callback) {
|
||||
if (Loaded)
|
||||
CloudCmd.View.show(Element, {
|
||||
|
|
@ -87,4 +90,4 @@
|
|||
init();
|
||||
}
|
||||
|
||||
})(CloudCmd, Util, DOM, CloudFunc);
|
||||
})(CloudCmd, Util, DOM);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue