Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4110019
fakeToolbar.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
864 B
Referenced Files
None
Subscribers
None
fakeToolbar.js
View Options
const
icons
=
require
(
'../mobile.startup/icons'
);
/* global $ */
module
.
exports
=
function
fakeToolbar
()
{
const
$goBack
=
icons
.
cancel
().
$el
;
// FIXME: Should not be a button, instead should be an icon with text
const
$loadingMessage
=
icons
.
spinner
(
{
tagName
:
'span'
,
isIconOnly
:
false
,
label
:
mw
.
msg
(
'mobile-frontend-editor-loading'
)
}
).
$el
;
// Wrappers similar to .overlay-header-container, .overlay-header and .oo-ui-toolbar
const
$fakeToolbar
=
$
(
'<div>'
)
.
addClass
(
've-mobile-fakeToolbar-container'
)
.
append
(
$
(
'<div>'
)
.
addClass
(
've-mobile-fakeToolbar-header'
)
// Minerva has some complicated styling for this class, so we have to include it
.
addClass
(
'overlay-header'
)
.
append
(
$
(
'<div>'
)
.
addClass
(
've-mobile-fakeToolbar'
)
.
append
(
$goBack
,
$loadingMessage
)
)
);
return
$fakeToolbar
;
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 21:25 (5 d, 1 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8a/73/c130db88e0463e82d336de5fb742
Default Alt Text
fakeToolbar.js (864 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment