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