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,16 +73,19 @@ function openReportWindow(e, postElement) {
|
|||||||
|
|
||||||
function onLoad(e) {
|
function onLoad(e) {
|
||||||
window.reportWindow = null;
|
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) =>
|
(postElement) =>
|
||||||
$("<a>")
|
$("<a>")
|
||||||
.text("Report")
|
.text("Report")
|
||||||
.attr("href", "#")
|
.attr("href", "#")
|
||||||
.on("click", (e) => { return openReportWindow(e, postElement); })
|
.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