* VRFS-3370 - mute button show logic was busted

This commit is contained in:
Seth Call 2015-07-23 11:01:48 -05:00
parent 2027b90705
commit 125f50872f
1 changed files with 5 additions and 5 deletions

View File

@ -110,10 +110,10 @@ ptrCount = 0
# using iCheck causes a 'ifChanged' event, so we need to swallow this up
@iCheckMaint = true
if muteMixer
$checkbox.iCheck('check', false).attr('checked', true)
if muteMixer.mute
$checkbox.iCheck('check').attr('checked', true)
else
$checkbox.iCheck('uncheck', false).attr('checked', false)
$checkbox.iCheck('uncheck').attr('checked', false)
@iCheckMaint = false
componentWillUpdate: (nextProps, nextState) ->
@ -135,8 +135,8 @@ ptrCount = 0
# using iCheck causes a 'ifChanged' event, so we need to swallow this up
@iCheckMaint = true
if muteMixer.mute
$checkbox.iCheck('check', false).attr('checked', true)
$checkbox.iCheck('check').attr('checked', true)
else
$checkbox.iCheck('uncheck', false).attr('checked', false)
$checkbox.iCheck('uncheck').attr('checked', false)
@iCheckMaint = false
})