From 525a8b293a609159698a79bbcb549e66c293274e Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Tue, 06 Dec 2016 21:16:40 +0000 Subject: [PATCH] Add footer and fix date in copyrights --- index.js | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/index.js b/index.js index 54b901a..12d1c79 100644 --- a/index.js +++ b/index.js @@ -264,6 +264,12 @@ }, interval); } +var decodeEntitiesTextArea = document.createElement('textarea'); +function decodeEntities(text) { + decodeEntitiesTextArea.innerHTML = text; + return decodeEntitiesTextArea.value; +} + function init() { if(!window.jQuery) { fail('Required JavaScript jQuery library failed to load. You may try refreshing the page.'); @@ -287,7 +293,7 @@ for(var i = 1, il = data.length; i < il; i++) { var opt = document.createElement('option'); opt.value = data[i].id; - opt.appendChild(document.createTextNode(data[i].name)); + setText(opt, decodeEntities(data[i].name)); stop_name_autocomplete.appendChild(opt); } -- Gitblit v1.9.1