Merge pull request #481 from zoff-music/feature/tags

Dont pasue on space in field
This commit is contained in:
Kasper Rynning-Tønnesen
2019-03-02 18:29:21 +01:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -22,6 +22,8 @@ function removeAllListeners() {
}
function filterPlaylistElements(page) {
var value = document.getElementById("filtersearch_input").value;
if(value == "") return;
Helper.ajax({
type: "POST",
headers: {
@@ -29,7 +31,7 @@ function filterPlaylistElements(page) {
},
url: "/api/search/" + chan.toLowerCase(),
data: {
searchQuery: document.getElementById("filtersearch_input").value,
searchQuery: value,
token: zoff_api_token,
page: page
},

View File

@@ -1860,6 +1860,7 @@ function addDynamicListeners() {
document.querySelector("#password") != document.activeElement &&
document.querySelector("#other-list-name-add") != document.activeElement &&
document.querySelector("#user-pass-input") != document.activeElement &&
document.querySelector("#filtersearch_input") != document.activeElement &&
document.querySelector("#thumbnail_input") != document.activeElement &&
document.querySelector("#rules_input") != document.activeElement &&
document.querySelector("#description_input") != document.activeElement &&