Constructor
new ve.ui.EditCheckDialog()abstract
#
EditCheckDialog constructor.
Abstract mixin for FixedEditCheckDialog and SidebarEditCheckDialog.
Methods
getSetupProcess()
#
getTeardownProcess()
#
hasAction(action) → {boolean}
#
Check if an action exists in the current actions.
Parameters:
| Name | Type | Description |
|---|---|---|
action |
Object | Action |
Returns:
- Type
- boolean
initialize()
#
onAct(action, widget, promise)
#
Handle 'act' events from the mw.widget.EditCheckActionWidget.
Parameters:
| Name | Type | Description |
|---|---|---|
action |
mw.editcheck.EditCheckAction | Action |
widget |
mw.editcheck.EditCheckActionWidget | Action's widget |
promise |
jQuery.Promise | Promise which resolves when the action is complete |
onActionsUpdated(listener, actions, newActions, discardedActions, rejected)
#
Handle updates to the list of edit check actions.
Parameters:
| Name | Type | Description |
|---|---|---|
listener |
string | Check listener |
actions |
Array.<mw.editcheck.EditCheckAction> | All current actions |
newActions |
Array.<mw.editcheck.EditCheckAction> | Newly added actions |
discardedActions |
Array.<mw.editcheck.EditCheckAction> | Newly removed actions |
rejected |
boolean | The last action was rejected/dismissed |
onCloseButtonClick()
#
Handle click events from the close button.
onFocusAction(action, index, scrollTo)
#
Handle focusAction events from the controller
Parameters:
| Name | Type | Description |
|---|---|---|
action |
mw.editcheck.EditCheckAction | Action |
index |
number | Index of the action in #getActions |
scrollTo |
boolean | Scroll the action's selection into view |
onNextButtonClick()
#
Handle click events from the next button.
onPreviousButtonClick()
#
Handle click events from the previous button.
onToggleCollapse(action, index)
#
Handle 'togglecollapse' events from the mw.widget.EditCheckActionWidget.
Parameters:
| Name | Type | Description |
|---|---|---|
action |
mw.editcheck.EditCheckAction | Action being expanded/collapsed |
index |
number | Index of action in list |
ready(data) → {jQuery.Promise}
#
HACK: Override #ready to prevent trying to focus $content
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object |
Returns:
- Type
- jQuery.Promise
refresh()
#
Refresh the action list
setCurrentOffset(offset, fromUserAction, [internal])
#
Set the offset of the current check, within the list of all checks.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
offset |
number
|
null
|
New offset |
|
fromUserAction |
boolean | The change was triggered by a user action |
|
internal |
boolean |
optional |
Change was triggered internally |
showActions(actions, newActions, lastActionRejected)
#
Show the actions list
Parameters:
| Name | Type | Description |
|---|---|---|
actions |
Array.<mw.editcheck.EditCheckAction> | Actions |
newActions |
Array.<mw.editcheck.EditCheckAction> | Newly added actions |
lastActionRejected |
boolean | Last action was rejected/dismissed |