From ca22d8f9ba17644f8a6ccce26e44d80098615395 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 30 Dec 2014 04:26:47 -0500 Subject: [PATCH] fix(dom) getCurrentName: title || textContent -> innerHTML, decodeEntities --- lib/client/dom.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/client/dom.js b/lib/client/dom.js index 3b69f4cf..530d79b4 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -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; };