Page MenuHomeWickedGov Phorge

codexTablePager.js
No OneTemporary

Size
668 B
Referenced Files
None
Subscribers
None

codexTablePager.js

/*!
* Progressive enhancements for the CodexTablePager class.
*/
( function () {
/**
* When the items-per-page limit changes, submit the form to reload the page and show the new
* number of items.
*/
const onLimitChange = () => {
$( '#cdx-table-pager-limit-form' ).trigger( 'submit' );
};
$( () => {
const $limitSelect = $( '#cdx-table-pager-limit-form .cdx-select' );
$limitSelect.on( 'change', onLimitChange );
// If the select has changed between the time the page loaded and this script loaded, submit
// the form.
if ( $limitSelect.val() !== mw.config.get( 'wgCodexTablePagerLimit' ).toString() ) {
onLimitChange();
}
} );
}() );

File Metadata

Mime Type
text/plain
Expires
Sat, May 16, 13:04 (1 d, 15 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9d/ec/d16ae47d28ffd5a185d4e242d1c6
Default Alt Text
codexTablePager.js (668 B)

Event Timeline