MediaWiki:Common.js: Difference between revisions
mNo edit summary Tag: Reverted |
mNo edit summary Tag: Reverted |
||
| Line 5: | Line 5: | ||
document.querySelectorAll('.notice-close').forEach(function(closeBtn) { | document.querySelectorAll('.notice-close').forEach(function(closeBtn) { | ||
closeBtn.addEventListener('click', function() { | closeBtn.addEventListener('click', function() { | ||
var notice = this.closest('.notice'); | var notice = this.closest('.notice'); | ||
if (notice) { | if (notice) { | ||