Skip to content

Commit

Permalink
correctly get target filename for jqSpeciallogfileNote action call vi…
Browse files Browse the repository at this point in the history
…a ajax, fixes #1267

Signed-off-by: Michael Kaufmann <[email protected]>
  • Loading branch information
d00p committed Aug 16, 2024
1 parent bcbfcb3 commit a58a5fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/Froxlor/assets/js/jquery/domains.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit a58a5fd

Please sign in to comment.