added TODOs to main.js

This commit is contained in:
Erhard 2017-08-04 13:59:24 +02:00
parent 8eaf74a4b4
commit ed84c4fbe9

View File

@ -72,6 +72,7 @@ ready(function() {
}
};
// TODO: make sure that only sound buttons get selected, not ALL a-tags. See d4377e0f49dc8dd5787f4466c9ab7f7e7cd37ec5#note_857
// keyboard listener for enter key
var all_a_s = document.getElementsByTagName("a");
for(i=0; i<all_a_s.length; i++) {
@ -99,6 +100,7 @@ function resetSearch() {
var searchfield = document.querySelector("#search");
var buttons = document.querySelectorAll(".sound");
// TODO: check if blur() still necessary or if value="" and focus() are already enough. See d4377e0f49dc8dd5787f4466c9ab7f7e7cd37ec5#note_871
searchfield.blur();
buttons.forEach(function(item) {