Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4099421
action.delete.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
action.delete.js
View Options
/*!
* JavaScript for action=delete
*/
(
function
()
{
if
(
mw
.
config
.
get
(
'wgAction'
)
!==
'delete'
)
{
return
;
}
$
(
()
=>
{
const
reasonList
=
OO
.
ui
.
infuse
(
$
(
'#wpDeleteReasonList'
)
),
reason
=
OO
.
ui
.
infuse
(
$
(
'#wpReason'
)
);
mw
.
widgets
.
visibleCodePointLimitWithDropdown
(
reason
,
reasonList
,
mw
.
config
.
get
(
'wgCommentCodePointLimit'
)
);
}
);
// Hide or show the "Watchlist expiry" element if the "Watch this page" checkbox is checked
function
infuseIfExists
(
$el
)
{
if
(
!
$el
.
length
)
{
return
null
;
}
return
OO
.
ui
.
infuse
(
$el
);
}
const
watch
=
infuseIfExists
(
$
(
'#wpWatch'
)
);
const
wpWatchlistExpiry
=
infuseIfExists
(
$
(
'#wpWatchlistExpiry'
)
);
function
toggleExpiryVisibility
()
{
if
(
watch
===
null
||
wpWatchlistExpiry
===
null
)
{
// If any of the elements are not present, we don't need to do anything
return
;
}
if
(
!
watch
.
isSelected
()
)
{
wpWatchlistExpiry
.
setDisabled
(
true
);
}
else
{
wpWatchlistExpiry
.
setDisabled
(
false
);
}
}
watch
.
on
(
'change'
,
toggleExpiryVisibility
);
toggleExpiryVisibility
();
}()
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 15:51 (3 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c8/fb/d14c69e67a8a0177da7843f07ee7
Default Alt Text
action.delete.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment