fixed double click injection
This commit is contained in:
parent
c9ac4d6545
commit
b1695d924b
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user