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