mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
added cloud status
This commit is contained in:
parent
b872278adc
commit
29d1f2966e
1 changed files with 18 additions and 4 deletions
22
client.js
22
client.js
|
|
@ -431,18 +431,28 @@ CloudClient.Util = (function(){
|
|||
return lCurrent;
|
||||
};
|
||||
|
||||
this.setCurrentFile = function(pCurrentFile){
|
||||
if(!pCurrentFile)
|
||||
this.addCloudStatus({
|
||||
code : -1,
|
||||
msg : 'Error pCurrentFile could not be none'
|
||||
});
|
||||
|
||||
return pCurrentFile.className = CloudCommander.CURRENT_FILE;
|
||||
};
|
||||
|
||||
this.getCurrentLink = function(pCurrentFile){
|
||||
var lCurrent = this.getCurrentFile();
|
||||
|
||||
var lLink;
|
||||
var lLink;
|
||||
lLink = (pCurrentFile ? pCurrentFile : lCurrent)
|
||||
.getElementsByTagName('a')[0];
|
||||
|
||||
if(!lLink)
|
||||
this.CloudStatus = {
|
||||
this.addCloudStatus({
|
||||
code : -1,
|
||||
msg : 'Error current element do not contain links'
|
||||
};
|
||||
});
|
||||
|
||||
return lLink;
|
||||
};
|
||||
|
|
@ -489,7 +499,11 @@ CloudClient.Util = (function(){
|
|||
lPanel.className = 'panel hidden';
|
||||
};
|
||||
|
||||
this.CloudStatus = {};
|
||||
this.CloudStatus = [];
|
||||
|
||||
this.addCloudStatus = function(pStatus){
|
||||
this.CloudStatus[this.CloudStatus.length] = pStatus;
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue