Remove decodeEntities function that is no longer needed
| | |
| | | deleteChildren(element); |
| | | element.appendChild(document.createTextNode(text)); |
| | | } |
| | | |
| | | // Other functions |
| | | var decodeEntitiesTextArea = document.createElement('textarea'); |
| | | function decodeEntities(text) { |
| | | decodeEntitiesTextArea.innerHTML = text; |
| | | return decodeEntitiesTextArea.value; |
| | | } |
| | |
| | | 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); |
| | | } |
| | | |