Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5991608
htmlform.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
htmlform.js
View Options
$
(
()
=>
{
/**
* Fired on page load to enhance any HTML forms on the page.
*
* @event ~'htmlform.enhance'
* @param {jQuery} document
* @memberof Hooks
*/
mw
.
hook
(
'htmlform.enhance'
).
fire
(
$
(
document
)
);
}
);
mw
.
hook
(
'htmlform.enhance'
).
add
(
(
$root
)
=>
{
// Turn HTML5 form validation back on, in cases where it was disabled server-side (see
// HTMLForm::needsJSForHtml5FormValidation()) because we need extra logic implemented in JS to
// validate correctly. Currently, this is only used for forms containing fields with 'hide-if'.
$root
.
find
(
'.mw-htmlform'
).
removeAttr
(
'novalidate'
);
// Enable collapsible forms
const
$collapsible
=
$root
.
find
(
'.mw-htmlform-ooui .oo-ui-fieldsetLayout.mw-collapsible'
);
if
(
$collapsible
.
length
)
{
mw
.
loader
.
using
(
'jquery.makeCollapsible'
).
then
(
()
=>
{
$collapsible
.
makeCollapsible
();
}
);
}
}
);
// Collect other hook handlers
require
(
'./autocomplete.js'
);
require
(
'./autoinfuse.js'
);
require
(
'./cloner.js'
);
require
(
'./cond-state.js'
);
require
(
'./selectandother.js'
);
require
(
'./selectorother.js'
);
require
(
'./timezone.js'
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 4 2026, 01:57 (4 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f9/bf/6c9499ab6423008ac22a3e59d191
Default Alt Text
htmlform.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment