Go to file
joakin 212dcf1d55 Update the settings enabled radio with the enabled state
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
2016-12-16 10:29:34 +00:00
doc Wire up saving enabled/disabled in settings dialog 2016-12-14 14:35:59 +00:00
i18n Introduce Opt-In option on user preferences page 2016-12-16 01:06:59 +01:00
images Directory structure should reflect the ResourceLoader definitions 2016-10-19 20:52:40 +00:00
includes Introduce Opt-In option on user preferences page 2016-12-16 01:06:59 +01:00
resources Update the settings enabled radio with the enabled state 2016-12-16 10:29:34 +00:00
tests Update the settings enabled radio with the enabled state 2016-12-16 10:29:34 +00:00
.gitignore Add composer.json 2015-11-19 14:30:20 +01:00
.gitreview Make mpga the default branch for git-review 2016-11-08 21:00:21 +00:00
.jscsrc Enable Redux DevTools in debug mode 2016-11-09 10:38:20 +00:00
.jshintignore Update linting and enable command line QUnit 2016-11-08 13:56:17 -05:00
.jshintrc Enable Redux DevTools in debug mode 2016-11-09 10:38:20 +00:00
composer.json build: Updating development dependencies 2016-01-05 10:39:25 -08:00
COPYING Add COPYING file 2014-02-06 15:38:46 +05:30
extension.json Sync enabled preview state to storage on change 2016-12-16 10:27:24 +00:00
Gemfile Update mediawiki_api gem to 1.7.1 2016-05-26 01:34:35 +02:00
Gemfile.lock Hygiene: Remove RL-related step 2016-12-13 14:46:03 +00:00
Gruntfile.js Add LINK_DWELL and LINK_ABANDON actions 2016-11-10 11:47:55 +00:00
jsduck.json Setup jsduck to run on 'npm run doc' 2015-08-03 15:54:25 +05:30
package.json Update linting and enable command line QUnit 2016-11-08 13:56:17 -05:00
Popups.hooks.php Introduce Opt-In option on user preferences page 2016-12-16 01:06:59 +01:00
Popups.php Add extension.json, empty php entry point 2015-07-02 22:19:24 +00:00