fixed double click injection

This commit is contained in:
Václav Šmejkal 2024-05-16 21:17:40 +02:00
parent c9ac4d6545
commit b1695d924b
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -6,15 +6,19 @@ script.crossOrigin = "anonymous";
document.getElementsByTagName('head')[0].appendChild(script);
let main_panel_buffer = null;
function show(file)
{
if (main_panel_buffer == null) main_panel_buffer = document.getElementById("main_panel").innerHTML;
$.ajax
({
url: "./res/forum/" + file + ".html",
dataType: "html",
success: function(data)
{
$("#main_panel").append(data);
$("#main_panel").html(main_panel_buffer + data);
}
});
}