Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4148493
index.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
index.js
View Options
$
(
()
=>
{
new
ve
.
init
.
sa
.
Platform
(
ve
.
messagePaths
).
initialize
().
done
(
()
=>
{
const
documentNameInput
=
new
OO
.
ui
.
TextInputWidget
(
{
placeholder
:
ve
.
msg
(
'visualeditor-rebase-client-document-name'
)
}
),
submitButton
=
new
OO
.
ui
.
ButtonWidget
(
{
label
:
ve
.
msg
(
'visualeditor-rebase-client-document-create-edit'
),
flags
:
[
'primary'
,
'progressive'
]
}
),
documentNameField
=
new
OO
.
ui
.
ActionFieldLayout
(
documentNameInput
,
submitButton
,
{
align
:
'top'
}
);
function
onSubmit
()
{
const
docName
=
documentNameInput
.
getValue
().
trim
().
replace
(
/ /g
,
'_'
)
||
ve
.
init
.
platform
.
generateUniqueId
();
if
(
docName
)
{
window
.
location
.
href
=
'/doc/edit/'
+
encodeURIComponent
(
docName
);
}
else
{
documentNameInput
.
focus
();
}
}
submitButton
.
on
(
'click'
,
onSubmit
);
documentNameInput
.
on
(
'enter'
,
onSubmit
);
// eslint-disable-next-line no-jquery/no-global-selector
$
(
'.ve-demo-index'
).
append
(
documentNameField
.
$element
);
documentNameInput
.
focus
();
}
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Aug 19 2026, 18:48 (6 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
07/b7/a638dfec1886e6f027addf48e13b
Default Alt Text
index.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment