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:
@@ -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 = [];
|
||||
Reference in New Issue
Block a user