Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4148502
mediawiki.special.userrights.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
787 B
Referenced Files
None
Subscribers
None
mediawiki.special.userrights.js
View Options
/*!
* JavaScript for Special:UserRights
*/
$
(
()
=>
{
// Replace successbox with notifications
require
(
'mediawiki.notification.convertmessagebox'
)();
// Dynamically show/hide the "other time" input under each dropdown
$
(
'.mw-userrights-nested select'
).
on
(
'change'
,
(
e
)
=>
{
$
(
e
.
target
.
parentNode
).
find
(
'input'
).
toggle
(
$
(
e
.
target
).
val
()
===
'other'
);
}
);
$
(
'#wpReason'
).
codePointLimit
(
mw
.
config
.
get
(
'wgCommentCodePointLimit'
)
);
// Disable the watch field for cross-wiki userright changes
const
userrightsInterwikiDelimiter
=
require
(
'./config.json'
).
UserrightsInterwikiDelimiter
;
$
(
'#username'
).
on
(
'change'
,
(
e
)
=>
{
$
(
'#wpWatch'
).
prop
(
'disabled'
,
e
.
target
.
value
.
includes
(
userrightsInterwikiDelimiter
)
);
}
).
trigger
(
'change'
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Aug 19 2026, 18:49 (6 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
89/52/dd3426fd9316c4548595e8f6416a
Default Alt Text
mediawiki.special.userrights.js (787 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment