Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4105511
searchSuggestReveal.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
559 B
Referenced Files
None
Subscribers
None
searchSuggestReveal.js
View Options
const
SEARCH_CLASS
=
'search-enabled'
;
module
.
exports
=
function
()
{
// eslint-disable-next-line no-jquery/no-global-selector
$
(
'#searchIcon'
).
on
(
'click'
,
()
=>
{
// eslint-disable-next-line no-jquery/no-global-selector
const
$input
=
$
(
'#searchInput'
);
const
$body
=
$
(
document
.
body
);
// eslint-disable-next-line no-jquery/no-sizzle
if
(
!
$input
.
is
(
':visible'
)
)
{
$body
.
addClass
(
SEARCH_CLASS
);
$input
.
trigger
(
'focus'
)
.
one
(
'blur'
,
()
=>
{
$body
.
removeClass
(
SEARCH_CLASS
);
}
);
return
false
;
}
}
);
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 19:01 (2 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5c/03/47a3ff87587d2941d22158070780
Default Alt Text
searchSuggestReveal.js (559 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment