Improved www.ttss.krakow.pl
Jacek Kowalski
2017-04-15 9edf7f879543385ad8a6474375397a8d21a226fe
Remove decodeEntities function that is no longer needed
2 files modified
9 ■■■■ changed files
common.js 7 ●●●●● patch | view | raw | blame | history
index.js 2 ●●● patch | view | raw | blame | history
common.js
@@ -159,10 +159,3 @@
    deleteChildren(element);
    element.appendChild(document.createTextNode(text));
}
// Other functions
var decodeEntitiesTextArea = document.createElement('textarea');
function decodeEntities(text) {
    decodeEntitiesTextArea.innerHTML = text;
    return decodeEntitiesTextArea.value;
}
index.js
@@ -387,7 +387,7 @@
            if(data[i].id > 6000) continue;
            var opt = document.createElement('option');
            opt.value = data[i].id;
            setText(opt, decodeEntities(data[i].name));
            setText(opt, data[i].name);
            stop_name_autocomplete.appendChild(opt);
        }