MediaWiki:Common.js: Difference between revisions

From lotico
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Manual revert
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
$(document).ready(function() {
    $('span.popup-link a').once('popup-link').on('click', function(e) {
        e.preventDefault();  // Stop default navigation
        window.open(
            this.href,
            'popupWindow',
            'width=600,height=400,scrollbars=yes,resizable=yes'
        );
    });
});

Latest revision as of 21:12, 6 September 2025

/* Any JavaScript here will be loaded for all users on every page load. */