Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7475910
ext.GlobalPreferences.local.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
503 B
Referenced Files
None
Subscribers
None
ext.GlobalPreferences.local.js
View Options
(
function
()
{
'use strict'
;
/**
* Alter the search index to add local exception fields (T332851).
*
* @param {string} index Search index
*/
mw
.
hook
(
'prefs.search.buildIndex'
).
add
(
(
index
)
=>
{
Object
.
keys
(
index
).
forEach
(
(
key
)
=>
{
index
[
key
].
forEach
(
(
item
)
=>
{
const
$localException
=
item
.
$field
.
next
(
'.mw-globalprefs-local-exception'
);
if
(
$localException
.
length
)
{
item
.
$field
=
item
.
$field
.
add
(
$localException
);
}
}
);
}
);
}
);
}()
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 23, 10:08 (4 d, 11 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1f/7b/3efd5c5f4638e7003908d5057c97
Default Alt Text
ext.GlobalPreferences.local.js (503 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment