From 0b2ad520b7a5edd95e708684eef77ac739119045 Mon Sep 17 00:00:00 2001 From: zoeller-freinet <86965592+zoeller-freinet@users.noreply.github.com> Date: Sat, 1 Jan 2022 21:20:01 +0100 Subject: [PATCH] History table: relocate HTML for modal window (#1090) - Store HTML for modal window inside an invisible
element instead of inside the @@ -45,17 +46,10 @@
- - \ No newline at end of file + diff --git a/powerdnsadmin/templates/dashboard.html b/powerdnsadmin/templates/dashboard.html index e018be3..0e5b3b5 100755 --- a/powerdnsadmin/templates/dashboard.html +++ b/powerdnsadmin/templates/dashboard.html @@ -114,20 +114,20 @@ {{ history.history.msg }} {{ history.history.created_on }} + @@ -243,7 +243,8 @@ $(document.body).on('click', '.history-info-button', function () { var modal = $("#modal_history_info"); - var info = $(this).val(); + var history_id = $(this).val(); + var info = $("#history-info-div-" + history_id).html(); $('#modal-info-content').html(info); modal.modal('show'); });