mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Merge pull request #481 from zoff-music/feature/tags
Dont pasue on space in field
This commit is contained in:
@@ -22,6 +22,8 @@ function removeAllListeners() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function filterPlaylistElements(page) {
|
function filterPlaylistElements(page) {
|
||||||
|
var value = document.getElementById("filtersearch_input").value;
|
||||||
|
if(value == "") return;
|
||||||
Helper.ajax({
|
Helper.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
@@ -29,7 +31,7 @@ function filterPlaylistElements(page) {
|
|||||||
},
|
},
|
||||||
url: "/api/search/" + chan.toLowerCase(),
|
url: "/api/search/" + chan.toLowerCase(),
|
||||||
data: {
|
data: {
|
||||||
searchQuery: document.getElementById("filtersearch_input").value,
|
searchQuery: value,
|
||||||
token: zoff_api_token,
|
token: zoff_api_token,
|
||||||
page: page
|
page: page
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1860,6 +1860,7 @@ function addDynamicListeners() {
|
|||||||
document.querySelector("#password") != document.activeElement &&
|
document.querySelector("#password") != document.activeElement &&
|
||||||
document.querySelector("#other-list-name-add") != document.activeElement &&
|
document.querySelector("#other-list-name-add") != document.activeElement &&
|
||||||
document.querySelector("#user-pass-input") != document.activeElement &&
|
document.querySelector("#user-pass-input") != document.activeElement &&
|
||||||
|
document.querySelector("#filtersearch_input") != document.activeElement &&
|
||||||
document.querySelector("#thumbnail_input") != document.activeElement &&
|
document.querySelector("#thumbnail_input") != document.activeElement &&
|
||||||
document.querySelector("#rules_input") != document.activeElement &&
|
document.querySelector("#rules_input") != document.activeElement &&
|
||||||
document.querySelector("#description_input") != document.activeElement &&
|
document.querySelector("#description_input") != document.activeElement &&
|
||||||
|
|||||||
Reference in New Issue
Block a user