From e2ebee7c311c2b5a1f49b20df47b971a828eea27 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 2 May 2015 12:34:27 -0400 Subject: [PATCH] adjust startup sequences --- dashboard-ui/css/mediaplayer.css | 4 +- dashboard-ui/scripts/dashboardpage.js | 2 +- dashboard-ui/scripts/librarymenu.js | 53 ++-- dashboard-ui/scripts/mediaplayer-video.js | 13 +- dashboard-ui/scripts/mediaplayer.js | 16 +- dashboard-ui/scripts/site.js | 245 ++++++++++-------- .../thirdparty/jquery.unveil-custom.js | 2 +- 7 files changed, 193 insertions(+), 142 deletions(-) diff --git a/dashboard-ui/css/mediaplayer.css b/dashboard-ui/css/mediaplayer.css index 69cf1ebe42..a3dbf53b4f 100644 --- a/dashboard-ui/css/mediaplayer.css +++ b/dashboard-ui/css/mediaplayer.css @@ -141,7 +141,7 @@ input[type="range"]::-ms-fill-upper { margin-bottom: 0; } - .nowPlayingBar .mediaButton:not(.playButton):not(.pauseButton):not(.remoteControlButton) { + .nowPlayingBar .mediaButton:not(.unpauseButton):not(.pauseButton):not(.remoteControlButton) { display: none; } @@ -149,7 +149,7 @@ input[type="range"]::-ms-fill-upper { float: right; } - .nowPlayingBar .playButton, .nowPlayingBar .pauseButton { + .nowPlayingBar .unpauseButton, .nowPlayingBar .pauseButton { float: right; } diff --git a/dashboard-ui/scripts/dashboardpage.js b/dashboard-ui/scripts/dashboardpage.js index 164b1f4171..963e7aef0e 100644 --- a/dashboard-ui/scripts/dashboardpage.js +++ b/dashboard-ui/scripts/dashboardpage.js @@ -591,7 +591,7 @@ var clientLowered = connection.Client.toLowerCase(); - if (clientLowered == "dashboard" || clientLowered == "emby web client") { + if (clientLowered == "dashboard" || clientLowered == "emby web client" || clientLowered == "emby mobile") { var device = connection.DeviceName.toLowerCase(); diff --git a/dashboard-ui/scripts/librarymenu.js b/dashboard-ui/scripts/librarymenu.js index 67f9f15e8d..f4260b6ffc 100644 --- a/dashboard-ui/scripts/librarymenu.js +++ b/dashboard-ui/scripts/librarymenu.js @@ -4,7 +4,7 @@ var html = '
'; - if ($.browser.safari && $.browser.mobile && window.navigator.standalone) { + if (($.browser.safari && $.browser.mobile && window.navigator.standalone) || Dashboard.isRunningInCordova()) { html += '
'; } @@ -253,38 +253,47 @@ html += '