Update order of the menu items

Report item gets added first in the menu now.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-06-23 22:30:56 -07:00
parent 647aedfc67
commit 8f9b27d5be

View File

@@ -73,16 +73,19 @@ function openReportWindow(e, postElement) {
function onLoad(e) {
window.reportWindow = null;
window.menuItemFactories.push(
}
$(document).on("click", documentClick);
$(document).on("click", ".post_id", doQuote);
$(window).on("load", () => {
window.reportWindow = null;
});
window.menuItemFactories = [];
window.menuItemFactories.push(
(postElement) =>
$("<a>")
.text("Report")
.attr("href", "#")
.on("click", (e) => { return openReportWindow(e, postElement); })
);
}
$(document).on("click", documentClick);
$(document).on("click", ".post_id", doQuote);
$(window).on("load", onLoad);
window.menuItemFactories = [];
);