Skip to content
This repository was archived by the owner on May 21, 2018. It is now read-only.

Commit

Permalink
Fixing checkbox settings' values
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrikas Elsbergas committed May 5, 2017
1 parent 7b6b3d3 commit 4a8c089
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/webui/client/modules/settings/views/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ define(['application', 'marionette', './templates/settings.tpl', 'json-editor',
})

this.setConfig()
this.editor.on('change', function() {
self.update()
let init = true
self.editor.on('change', function() {
// skip the first update since it is tiggered before values are properly set
if (init)
init = false
else
self.update()
})

if (this.options.refresh)
Expand Down

0 comments on commit 4a8c089

Please sign in to comment.