From a58a5fd97267310faa2b77fe4a76ddee6aa3bde5 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Thu, 15 Aug 2024 20:11:28 +0200 Subject: [PATCH] correctly get target filename for jqSpeciallogfileNote action call via ajax, fixes #1267 Signed-off-by: Michael Kaufmann --- templates/Froxlor/assets/js/jquery/domains.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/Froxlor/assets/js/jquery/domains.js b/templates/Froxlor/assets/js/jquery/domains.js index 9e3766ec09..2322c8bd6d 100644 --- a/templates/Froxlor/assets/js/jquery/domains.js +++ b/templates/Froxlor/assets/js/jquery/domains.js @@ -41,8 +41,9 @@ export default function () { $('#speciallogfilenote').remove(); $('#speciallogfile').removeClass('is-invalid'); $('#speciallogverified').val(0); + const cFileName = window.location.pathname.substring(window.location.pathname.lastIndexOf("/")+1); $.ajax({ - url: window.location.pathname.substring(1) + "?page=overview&action=jqSpeciallogfileNote", + url: cFileName + "?page=overview&action=jqSpeciallogfileNote", type: "POST", data: { id: $('input[name=id]').val(), newval: +$('#speciallogfile').is(':checked')