From eccb0f79acc218f5596bd176f9242b07f83ed5b1 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 5 Sep 2014 23:46:14 -0400 Subject: [PATCH] fixes #913 - "Display Mirroring" option sticks to on --- dashboard-ui/scripts/mediacontroller.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dashboard-ui/scripts/mediacontroller.js b/dashboard-ui/scripts/mediacontroller.js index 22d4354941..80d4e802ff 100644 --- a/dashboard-ui/scripts/mediacontroller.js +++ b/dashboard-ui/scripts/mediacontroller.js @@ -4,7 +4,7 @@ var val = enabled ? '1' : '0'; - store.setItem('displaymirror-' + Dashboard.getCurrentUserId(), val); + store.setItem('displaymirror--' + Dashboard.getCurrentUserId(), val); } function isMirrorModeEnabled() { @@ -477,6 +477,7 @@ html += '

' + Globalize.translate('LabelAllPlaysSentToPlayer') + '

'; checkedHtml = isMirrorModeEnabled() ? ' checked="checked"' : ''; + html += '
'; html += ''; @@ -508,7 +509,7 @@ $('.players', elem).html(getTargetsHtml(targets)).trigger('create'); - $('.chkEnableMirrorMode', elem).on().on('change', function () { + $('.chkEnableMirrorMode', elem).on('change', function () { setMirrorModeEnabled(this.checked); if (this.checked && currentDisplayInfo) {