From f8fc97f88baaa001ff92723de205edc196abb0a9 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 22 May 2024 18:25:45 +0200 Subject: [PATCH] moved selection fn to forum script --- res/forum/admin/admin.html | 16 ---------------- res/forum/script.js | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/res/forum/admin/admin.html b/res/forum/admin/admin.html index 9e41652..eb735ec 100644 --- a/res/forum/admin/admin.html +++ b/res/forum/admin/admin.html @@ -68,20 +68,4 @@ } }); } - - function selection(type, value) - { - return new Promise(function(resolve) - { - $.ajax - ({ - url: "./res/forum/admin/" + type + "_selection.html", - dataType: "html", - success: function(result) - { - resolve(result.replace("value=\"" + value, "selected value=\"" + value)); - } - }) - }); - } \ No newline at end of file diff --git a/res/forum/script.js b/res/forum/script.js index 3809daf..2a5b4bc 100644 --- a/res/forum/script.js +++ b/res/forum/script.js @@ -15,6 +15,22 @@ function show(file) }); } +function selection(type, value) +{ + return new Promise(function(resolve) + { + $.ajax + ({ + url: "./res/forum/admin/" + type + "_selection.html", + dataType: "html", + success: function(result) + { + resolve(result.replace("value=\"" + value, "selected value=\"" + value)); + } + }) + }); +} + function inject_info(id, username, postfix) { $.ajax