mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-27 01:36:28 +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
|
* @param currentFile
|
||||||
*/
|
*/
|
||||||
this.getCurrentName = function(currentFile) {
|
this.getCurrentName = function(currentFile) {
|
||||||
var name = '',
|
var inner,
|
||||||
|
name = '',
|
||||||
current = currentFile || this.getCurrentFile(),
|
current = currentFile || this.getCurrentFile(),
|
||||||
link = this.getCurrentLink(current);
|
link = this.getCurrentLink(current);
|
||||||
|
|
||||||
if (link)
|
if (link) {
|
||||||
name = link.title || link.textContent;
|
inner = link.innerHTML;
|
||||||
|
name = CloudFunc.decodeEntities(inner);
|
||||||
|
}
|
||||||
|
|
||||||
return name;
|
return name;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue