From 29ec4318100f005a024c170e32be96dccf6c3a62 Mon Sep 17 00:00:00 2001 From: Jens Pfeifer Date: Wed, 25 Jan 2017 12:41:23 +0000 Subject: [PATCH] Fixed issue #219 - Changing notification sound did not show selected sound after re-rendering the page without complete reload. --- .../javascripts/app/controllers/_profile/notification.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_profile/notification.coffee b/app/assets/javascripts/app/controllers/_profile/notification.coffee index 147e375cd..91b0d626c 100644 --- a/app/assets/javascripts/app/controllers/_profile/notification.coffee +++ b/app/assets/javascripts/app/controllers/_profile/notification.coffee @@ -84,8 +84,7 @@ class Index extends App.ControllerSubContent config['group_ids'].push group_id.toString() for sound in @sounds - if sound.file is App.OnlineNotification.soundFile() - sound.selected = true + sound.selected = sound.file is App.OnlineNotification.soundFile() ? true : false @html App.view('profile/notification') groups: groups