Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1426345
codexTablePager.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
668 B
Referenced Files
None
Subscribers
None
codexTablePager.js
View Options
/*!
* 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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment