Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7425036
autocomplete.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
496 B
Referenced Files
None
Subscribers
None
autocomplete.js
View Options
/*
* HTMLForm enhancements:
* Set up autocomplete fields.
*/
mw
.
hook
(
'htmlform.enhance'
).
add
(
(
$root
)
=>
{
const
$autocomplete
=
$root
.
find
(
'.mw-htmlform-autocomplete'
);
if
(
$autocomplete
.
length
)
{
mw
.
loader
.
using
(
'jquery.suggestions'
,
()
=>
{
$autocomplete
.
suggestions
(
{
fetch
:
function
(
val
)
{
const
$el
=
$
(
this
);
$el
.
suggestions
(
'suggestions'
,
$el
.
data
(
'autocomplete'
).
filter
(
(
v
)
=>
v
.
startsWith
(
val
)
)
);
}
}
);
}
);
}
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 22, 07:42 (17 h, 45 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fe/3e/9f663e29b901dede45c8431f7957
Default Alt Text
autocomplete.js (496 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment