Added button for searching in channel

This commit is contained in:
Kasper Rynning-Tønnesen
2019-02-24 22:14:54 +01:00
parent 903532b2fd
commit 991b8f9ef2
3 changed files with 25 additions and 1 deletions

View File

@@ -678,6 +678,17 @@ function addDynamicListeners() {
document.getElementsByClassName("context-menu-root")[0].setAttribute("data-id", "");
});
addListener("click", ".playlist-search-button", function(e) {
this.preventDefault();
Helper.toggleClass("#find_div", "hide");
document.getElementById("find_input").value = "";
document.getElementById("find_input").blur();
Helper.removeClass(".highlight", "highlight");
found_array = [];
found_array_index = 0;
find_word = "";
});
addListener("click", ".delete-context-menu", function(e) {
var that = e;
if(that.classList.contains("context-menu-disabled")) {