From a60db2d7d48cb8c5050212c75ae0a9b71dbf9188 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 27 Jan 2016 14:28:12 -0500 Subject: [PATCH] restore channel view setting --- dashboard-ui/mypreferenceshome.html | 5 +++++ dashboard-ui/scripts/channels.js | 2 +- dashboard-ui/scripts/mypreferenceshome.js | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/mypreferenceshome.html b/dashboard-ui/mypreferenceshome.html index f2199371e..83cc9be50 100644 --- a/dashboard-ui/mypreferenceshome.html +++ b/dashboard-ui/mypreferenceshome.html @@ -89,6 +89,11 @@
${LabelSelectFolderGroupsHelp}

+
+ ${OptionDisplayChannelsInline} +
${OptionDisplayChannelsInlineHelp}
+
+
${LabelDisplayCollectionsView} diff --git a/dashboard-ui/scripts/channels.js b/dashboard-ui/scripts/channels.js index 13b658923..7e506dfac 100644 --- a/dashboard-ui/scripts/channels.js +++ b/dashboard-ui/scripts/channels.js @@ -70,7 +70,7 @@ } } - pageIdOn.on('pageinit', "channelsPage", function () { + pageIdOn('pageinit', "channelsPage", function () { var page = this; diff --git a/dashboard-ui/scripts/mypreferenceshome.js b/dashboard-ui/scripts/mypreferenceshome.js index b2cc9a0af..c512d76b0 100644 --- a/dashboard-ui/scripts/mypreferenceshome.js +++ b/dashboard-ui/scripts/mypreferenceshome.js @@ -129,6 +129,7 @@ page.querySelector('.chkDisplayCollectionView').checked = user.Configuration.DisplayCollectionsView || false; page.querySelector('.chkHidePlayedFromLatest').checked = user.Configuration.HidePlayedInLatest || false; + page.querySelector('.chkDisplayChannelsInline').checked = user.Configuration.DisplayChannelsInline || false; $('#selectHomeSection1', page).val(displayPreferences.CustomPrefs.home0 || ''); $('#selectHomeSection2', page).val(displayPreferences.CustomPrefs.home1 || ''); @@ -158,6 +159,8 @@ user.Configuration.DisplayCollectionsView = page.querySelector('.chkDisplayCollectionView').checked; user.Configuration.HidePlayedInLatest = page.querySelector('.chkHidePlayedFromLatest').checked; + user.Configuration.DisplayChannelsInline = page.querySelector('.chkDisplayChannelsInline').checked; + user.Configuration.LatestItemsExcludes = $(".chkIncludeInLatest", page).get().filter(function (i) { return !i.checked;