mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
feat: center chat modal attr
This commit is contained in:
@@ -389,6 +389,10 @@ define('chat', [
|
||||
};
|
||||
|
||||
module.center = function (chatModal) {
|
||||
const center = chatModal.attr('data-center');
|
||||
if (!center || center === 'false') {
|
||||
return;
|
||||
}
|
||||
let hideAfter = false;
|
||||
if (chatModal.hasClass('hide')) {
|
||||
chatModal.removeClass('hide');
|
||||
|
||||
Reference in New Issue
Block a user