mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
refactor(dom) getCurrentName
This commit is contained in:
parent
c230918d2d
commit
b8ee29db7a
1 changed files with 6 additions and 5 deletions
|
|
@ -1357,13 +1357,14 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
* @param currentFile
|
||||
*/
|
||||
this.getCurrentName = function(currentFile) {
|
||||
var lCurrent = currentFile || this.getCurrentFile(),
|
||||
lLink = this.getCurrentLink( lCurrent );
|
||||
var name = '',
|
||||
current = currentFile || this.getCurrentFile(),
|
||||
link = this.getCurrentLink(current);
|
||||
|
||||
if (Util.isObject(lLink))
|
||||
lLink = lLink.title || lLink.textContent;
|
||||
if (link)
|
||||
name = link.title || link.textContent;
|
||||
|
||||
return lLink;
|
||||
return name;
|
||||
};
|
||||
|
||||
this.getSelectedNames = function(selected) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue