Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4176485
mediawiki.special.userrights.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
793 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
.
indexOf
(
userrightsInterwikiDelimiter
)
!==
-
1
);
}
).
trigger
(
'change'
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Aug 20 2026, 09:04 (12 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
66/35/667b41d601cfc39a5d5c6ee3b70b
Default Alt Text
mediawiki.special.userrights.js (793 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment