fix(dom) getCurrentName: title || textContent -> innerHTML, decodeEntities

This commit is contained in:
coderaiser 2014-12-30 04:26:47 -05:00
parent e7822af805
commit ca22d8f9ba

View file

@ -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;
}; };