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,6 +73,15 @@ function openReportWindow(e, postElement) {
function onLoad(e) {
window.reportWindow = null;
}
$(document).on("click", documentClick);
$(document).on("click", ".post_id", doQuote);
$(window).on("load", () => {
window.reportWindow = null;
});
window.menuItemFactories = [];
window.menuItemFactories.push(
(postElement) =>
$("<a>")
@@ -80,9 +89,3 @@ function onLoad(e) {
.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 = [];