MediaWiki:Common.js: Difference between revisions
mNo edit summary Tag: Reverted |
mNo edit summary Tag: Reverted |
||
| Line 9: | Line 9: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
$('#ooui-php-2').on('change', function() { | $('#ooui-php-2').on('change', function() { | ||
console.log("Dropdown changed!"); | |||
console.log("Selected value: " + $(this).val()); | |||
}); | }); | ||
}); | }); | ||
Revision as of 20:34, 23 March 2025
/* Any JavaScript here will be loaded for all users on every page load. */
mw.loader.load( 'ext.cite.styles' );
$(document).ready(function() {
$('.dismissible-notice .dismiss-button').click(function() {
$(this).closest('.dismissible-notice').hide();
});
});
$(document).ready(function() {
$('#ooui-php-2').on('change', function() {
console.log("Dropdown changed!");
console.log("Selected value: " + $(this).val());
});
});