Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4101255
special.undelete.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
865 B
Referenced Files
None
Subscribers
None
special.undelete.js
View Options
/*!
* JavaScript for Special:Undelete
*/
(
function
()
{
if
(
mw
.
config
.
get
(
'wgCanonicalSpecialPageName'
)
!==
'Undelete'
)
{
return
;
}
$
(
()
=>
{
const
$widget
=
$
(
'#wpComment'
).
closest
(
'.oo-ui-widget'
);
if
(
!
$widget
.
length
)
{
// If the user has permission to see only the deleted
// revisions but not restore or the page is not currently
// deleted there'd be no comment field and no checkboxes.
return
;
}
const
wpComment
=
OO
.
ui
.
infuse
(
$widget
);
const
wpCommentList
=
OO
.
ui
.
infuse
(
$
(
'#wpCommentList'
).
closest
(
'.oo-ui-widget'
)
);
$
(
'#mw-undelete-invert'
).
on
(
'click'
,
()
=>
{
$
(
'.mw-undelete-revlist input[type="checkbox"]'
).
prop
(
'checked'
,
(
i
,
val
)
=>
!
val
);
}
);
mw
.
widgets
.
visibleCodePointLimitWithDropdown
(
wpComment
,
wpCommentList
,
mw
.
config
.
get
(
'wgCommentCodePointLimit'
)
);
}
);
}()
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 16:52 (3 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
19/df/8b11076c0ec5fcc55e374a0cca84
Default Alt Text
special.undelete.js (865 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment