Expand all

abstract ve.ui.EditCheckDialog

Constructor

new ve.ui.EditCheckDialog()abstract #

EditCheckDialog constructor.

Abstract mixin for FixedEditCheckDialog and SidebarEditCheckDialog.

Source:
EditCheckDialog constructor.

Methods

hasAction(action) → {boolean} #

Check if an action exists in the current actions.

Parameters:

Name Type Description
action Object

Action

Source:

Returns:

Type
boolean
Check if an action exists in the current actions.

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

Source:
Handle 'act' events from the mw.widget.EditCheckActionWidget.

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

Source:
Handle updates to the list of edit check actions.

onCloseButtonClick() #

Handle click events from the close button.

Source:
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

Source:
Handle focusAction events from the controller

onNextButtonClick() #

Handle click events from the next button.

Source:
Handle click events from the next button.

onPreviousButtonClick() #

Handle click events from the previous button.

Source:
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

Source:
Handle 'togglecollapse' events from the mw.widget.EditCheckActionWidget.

ready(data) → {jQuery.Promise} #

HACK: Override #ready to prevent trying to focus $content

Parameters:

Name Type Description
data Object
Source:

Returns:

Type
jQuery.Promise
HACK: Override #ready to prevent trying to focus $content

refresh() #

Refresh the action list

Source:
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

Source:
Set the offset of the current check, within the list of all checks.

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

Source:
Show the actions list

updateNavigationState() #

Update the disabled state of the navigation buttons

Source:
Update the disabled state of the navigation buttons