diff --git a/dashboard-ui/scripts/nowplayingpage.js b/dashboard-ui/scripts/nowplayingpage.js index 51a7e15e66..5f5b301ffd 100644 --- a/dashboard-ui/scripts/nowplayingpage.js +++ b/dashboard-ui/scripts/nowplayingpage.js @@ -192,6 +192,12 @@ return menuItem; }); + alert(currentIndex); + menuItems.unshift({ + id: -1, + name: Globalize.translate('ButtonOff'), + ironIcon: currentIndex == null ? 'check' : null + }); require(['actionsheet'], function () { @@ -848,8 +854,8 @@ } else { // hack alert. doing this because the neon elements don't seem to be initialized yet - setTimeout(function() { - + setTimeout(function () { + page.querySelector('neon-animated-pages').selected = selected; }, 1000); }