mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-18 21:05:57 +00:00
212dcf1d55
When opening the settings dialog, the form didn't represent the current enabled status of the application. This change makes sure that every time the form is shown, the form state represents the current application state. If the application is enabled, then the 'simple' (Enabled) option is selected on the form. If it is disabled then if there's Navigation popups, it selects 'advanced' (Advanced popups), if there are not, it selects 'off' (Disabled). Changes: * Change listeners * Set the form state every time the form is going to be shown * Update tests * Supporting changes * Add settingsDialog#setEnabled which updates the DOM form based on the enabled flag and the navpops state * Extract isNavPopupsEnabled function in settingsDialog.js to be used in the form creation and also when setting the form enabled state * Add test verifying changeListeners#settings shows and sets enabled state properly when showing the dialog more than one time Change-Id: Ic660f48d9a78e47c09a192ab86681196d2e01d61 |
||
---|---|---|
.. | ||
ext.popups | ||
ext.popups.core.test.js | ||
ext.popups.desktopRenderer.test.js | ||
ext.popups.renderer.article.test.js | ||
ext.popups.schemaPopups.utils.test.js |