mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Closes #501
This commit is contained in:
@@ -376,7 +376,7 @@ function check_error_video(msg, channel) {
|
||||
try {
|
||||
var resp = JSON.parse(body);
|
||||
if(resp.pageInfo.totalResults == 0) {
|
||||
findSimilar(msg, channel, true, undefined)
|
||||
findSimilar(msg, channel, true, undefined);
|
||||
}
|
||||
} catch(e){
|
||||
console.log(msg.id, key, e, body);
|
||||
|
||||
@@ -124,7 +124,7 @@ addListener("click", ".delete_api_token", function(event) {
|
||||
addListener("click", ".approve_name", function(event) {
|
||||
var that = event;
|
||||
var name = that.getAttribute("data-name");
|
||||
var value = document.querySelector("." + name + "_input").value;
|
||||
var value = that.parentElement.querySelector("input").value;
|
||||
ajax({
|
||||
type: "POST",
|
||||
url: "/api/names",
|
||||
@@ -148,7 +148,6 @@ addListener("click", ".approve_name", function(event) {
|
||||
addListener("click", ".remove_name", function(event) {
|
||||
var that = event;
|
||||
var name = that.getAttribute("data-name");
|
||||
var value = document.querySelector("." + name + "_input").value;
|
||||
ajax({
|
||||
type: "DELETE",
|
||||
url: "/api/names",
|
||||
|
||||
Reference in New Issue
Block a user