mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(dom) getCurrentName: title || textContent -> innerHTML, decodeEntities
This commit is contained in:
parent
e7822af805
commit
ca22d8f9ba
1 changed files with 6 additions and 3 deletions
|
|
@ -1208,12 +1208,15 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
* @param currentFile
|
||||
*/
|
||||
this.getCurrentName = function(currentFile) {
|
||||
var name = '',
|
||||
var inner,
|
||||
name = '',
|
||||
current = currentFile || this.getCurrentFile(),
|
||||
link = this.getCurrentLink(current);
|
||||
|
||||
if (link)
|
||||
name = link.title || link.textContent;
|
||||
if (link) {
|
||||
inner = link.innerHTML;
|
||||
name = CloudFunc.decodeEntities(inner);
|
||||
}
|
||||
|
||||
return name;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue