mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
feature(dom) add getCurrentOwner
This commit is contained in:
parent
cc59637307
commit
5a802d62cb
1 changed files with 13 additions and 0 deletions
|
|
@ -1000,6 +1000,19 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
return lRet;
|
||||
};
|
||||
|
||||
/**
|
||||
* @pCurrentFile
|
||||
*/
|
||||
this.getCurrentOwner = function(pCurrentFile) {
|
||||
var ret,
|
||||
current = pCurrentFile || this.getCurrentFile(),
|
||||
owner = this.getByClass('owner', current)[0];
|
||||
|
||||
ret = owner.textContent;
|
||||
|
||||
return ret;
|
||||
};
|
||||
|
||||
/**
|
||||
* unified way to get current file content
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue