mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
* 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
17 lines
570 B
JavaScript
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();
|
|
}
|