mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-13 17:56:55 +00:00
Merge "Hygiene: Rename action constants for consistency" into mpga
This commit is contained in:
commit
4e27d4b5b3
|
@ -17,9 +17,9 @@
|
||||||
PREVIEW_INTERACTIVE: 'PREVIEW_INTERACTIVE',
|
PREVIEW_INTERACTIVE: 'PREVIEW_INTERACTIVE',
|
||||||
PREVIEW_SHOW: 'PREVIEW_SHOW',
|
PREVIEW_SHOW: 'PREVIEW_SHOW',
|
||||||
PREVIEW_CLICK: 'PREVIEW_CLICK',
|
PREVIEW_CLICK: 'PREVIEW_CLICK',
|
||||||
COG_CLICK: 'COG_CLICK',
|
|
||||||
SETTINGS_DIALOG_RENDERED: 'SETTINGS_DIALOG_RENDERED',
|
SETTINGS_DIALOG_RENDERED: 'SETTINGS_DIALOG_RENDERED',
|
||||||
SETTINGS_DIALOG_CLOSED: 'SETTINGS_DIALOG_CLOSED',
|
SETTINGS_SHOW: 'SETTINGS_SHOW',
|
||||||
|
SETTINGS_HIDE: 'SETTINGS_HIDE',
|
||||||
EVENT_LOGGED: 'EVENT_LOGGED'
|
EVENT_LOGGED: 'EVENT_LOGGED'
|
||||||
},
|
},
|
||||||
FETCH_START_DELAY = 500, // ms.
|
FETCH_START_DELAY = 500, // ms.
|
||||||
|
@ -246,7 +246,18 @@
|
||||||
*/
|
*/
|
||||||
actions.showSettings = function () {
|
actions.showSettings = function () {
|
||||||
return {
|
return {
|
||||||
type: 'COG_CLICK'
|
type: types.SETTINGS_SHOW
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents the user closing the settings dialog and saving their settings.
|
||||||
|
*
|
||||||
|
* @return {Object}
|
||||||
|
*/
|
||||||
|
actions.settingsDialogClosed = function () {
|
||||||
|
return {
|
||||||
|
type: types.SETTINGS_HIDE
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue