Files
aowow/setup/tools/filegen/templates/global.js/messagebox.js
Sarjuuk 6557e70d5c Template/Update (Part 47)
* split global.js into its components, so it can be reasonably processed by setup
 * make reputation requirements configurable
 * move Markup and Locale back into global.js (removed associated build scripts)
 * extend Icon to display iconId in lightbox popup
2025-09-25 16:01:14 +02:00

17 lines
570 B
JavaScript

function MessageBox(parent, text) {
parent.find(".message-box").remove();
var box = $("<div></div>");
box.hide();
box.addClass("message-box");
box.html('<p class="message">' + text + '</p><p class="close">(Click on this box to close it)</p>');
box.click(function () { $(this).fadeOut(); });
box.click(function (e) {
$WH.sp(e); // aowow - custom: without this, the comment-header would also register the click
$(this).fadeOut();
});
parent.append(box[0]);
box.fadeIn();
}