MediaWiki:Common.js: Difference between revisions

From The Reed and Rite
mNo edit summary
Tag: Reverted
mNo edit summary
Tag: Reverted
Line 10: Line 10:
$(document).ready(function() {
$(document).ready(function() {
     $('#ooui-php-2').on('change', function() {
     $('#ooui-php-2').on('change', function() {
         console.log("Dropdown changed. Value: " + $(this).val());
        $('#mw-input-date').val('2026-01-01');
         console.log("date field value: " + $('#mw-input-date').val());
     });
     });
});
});

Revision as of 20:40, 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() {
        $('#mw-input-date').val('2026-01-01');
        console.log("date field value: " + $('#mw-input-date').val());
    });
});