Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7472949
LedeSectionDialog.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
LedeSectionDialog.js
View Options
function
LedeSectionDialog
()
{
// Parent constructor
LedeSectionDialog
.
super
.
apply
(
this
,
arguments
);
}
/* Inheritance */
OO
.
inheritClass
(
LedeSectionDialog
,
OO
.
ui
.
ProcessDialog
);
LedeSectionDialog
.
static
.
name
=
'ledeSection'
;
LedeSectionDialog
.
static
.
size
=
'larger'
;
LedeSectionDialog
.
static
.
title
=
OO
.
ui
.
deferMsg
(
'discussiontools-ledesection-title'
);
LedeSectionDialog
.
static
.
actions
=
[
{
label
:
OO
.
ui
.
deferMsg
(
'visualeditor-dialog-action-done'
),
flags
:
[
'safe'
,
'close'
]
}
];
LedeSectionDialog
.
prototype
.
initialize
=
function
()
{
// Parent method
LedeSectionDialog
.
super
.
prototype
.
initialize
.
call
(
this
);
this
.
contentLayout
=
new
OO
.
ui
.
PanelLayout
(
{
padded
:
true
,
expanded
:
false
,
classes
:
[
'ext-discussiontools-ui-ledeSectionDialog-content'
,
'mw-parser-output'
,
'content'
]
}
);
this
.
$body
.
append
(
this
.
contentLayout
.
$element
);
};
LedeSectionDialog
.
prototype
.
getSetupProcess
=
function
(
data
)
{
return
LedeSectionDialog
.
super
.
prototype
.
getSetupProcess
.
call
(
this
,
data
)
.
next
(
()
=>
{
this
.
contentLayout
.
$element
.
empty
().
append
(
data
.
$content
);
// Resize dialog if collapsible banners are toggled, see T323639 for context
this
.
contentLayout
.
$element
.
on
(
'afterExpand.mw-collapsible afterCollapse.mw-collapsible'
,
()
=>
{
this
.
updateSize
();
}
);
}
);
};
module
.
exports
=
LedeSectionDialog
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 23, 08:46 (4 d, 6 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f2/e6/996d3cdb7430c5d211f987cbf23f
Default Alt Text
LedeSectionDialog.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment