Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1429166
ext.centralauth.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
ext.centralauth.js
View Options
(
function
()
{
var
$methodHint
;
function
showMethodHint
(
methodName
,
e
)
{
if
(
!
$methodHint
)
{
$methodHint
=
$
(
'<div>'
)
.
addClass
(
'merge-method-help-div'
)
.
hide
()
.
on
(
'click'
,
function
()
{
// eslint-disable-next-line no-jquery/no-fade
$
(
this
).
fadeOut
();
}
);
mw
.
util
.
$content
.
append
(
$methodHint
);
}
// The following messages are used here:
// * centralauth-merge-method-primary, centralauth-merge-method-empty,
// * centralauth-merge-method-mail, centralauth-merge-method-password,
// * centralauth-merge-method-admin, centralauth-merge-method-new,
// * centralauth-merge-method-login,
// * centralauth-merge-method-primary-desc, centralauth-merge-method-empty-desc,
// * centralauth-merge-method-mail-desc, centralauth-merge-method-password-desc,
// * centralauth-merge-method-admin-desc, centralauth-merge-method-new-desc,
// * centralauth-merge-method-login-desc
// eslint-disable-next-line no-jquery/no-fade
$methodHint
.
empty
()
.
append
(
$
(
'<p>'
)
.
addClass
(
'merge-method-help-name'
)
.
text
(
mw
.
msg
(
'centralauth-merge-method-'
+
methodName
)
),
document
.
createTextNode
(
mw
.
msg
(
'centralauth-merge-method-'
+
methodName
+
'-desc'
)
)
)
.
css
(
{
left
:
e
.
pageX
+
'px'
,
top
:
e
.
pageY
+
'px'
}
)
.
fadeIn
();
}
$
(
function
()
{
// Back link for CentralLogin/start
// eslint-disable-next-line no-jquery/no-global-selector
$
(
'#centralauth-backlink-section'
).
append
(
$
(
'<a>'
)
.
attr
(
'href'
,
'#'
)
.
text
(
mw
.
msg
(
'centralauth-completelogin-back'
)
)
.
on
(
'click'
,
function
(
e
)
{
e
.
preventDefault
();
parent
.
history
.
back
();
}
)
);
// OnClick event listener for the "(?)" tooltips on Special:CentralAuth
// eslint-disable-next-line no-jquery/no-global-selector
$
(
'.mw-centralauth-wikislist'
).
on
(
'click'
,
'.merge-method-help'
,
function
(
event
)
{
showMethodHint
(
$
(
this
).
data
(
'centralauth-mergemethod'
),
event
);
}
);
// Confirm account deletions
// eslint-disable-next-line no-jquery/no-global-selector
$
(
'#mw-centralauth-delete input[type="submit"]'
).
on
(
'click'
,
function
()
{
// TODO: Convert this to OOUI.
// eslint-disable-next-line no-alert
return
confirm
(
mw
.
msg
(
'centralauth-admin-delete-confirm'
)
);
}
);
}
);
}()
);
File Metadata
Details
Attached
Mime Type
text/x-asm
Expires
Sat, May 16, 17:12 (9 h, 35 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
57/fb/9c9e69deb2c94d4fa6ac0b249c0d
Default Alt Text
ext.centralauth.js (2 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment