aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.WebDashboard/Html/scripts/DashboardPage.js
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-03-17 23:10:21 -0400
committerLukePulverenti <luke.pulverenti@gmail.com>2013-03-17 23:10:21 -0400
commitcf61ac0264883e53f024088a88148b87cbbf89a7 (patch)
tree07912cbc932912335693377f4b82e1c4a0431335 /MediaBrowser.WebDashboard/Html/scripts/DashboardPage.js
parentc1d38106c745313073986499e06a168146162f8b (diff)
fixed client type display for ios. also fixed display preferences saving.
Diffstat (limited to 'MediaBrowser.WebDashboard/Html/scripts/DashboardPage.js')
-rw-r--r--MediaBrowser.WebDashboard/Html/scripts/DashboardPage.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/MediaBrowser.WebDashboard/Html/scripts/DashboardPage.js b/MediaBrowser.WebDashboard/Html/scripts/DashboardPage.js
index 635553076..e61febb26 100644
--- a/MediaBrowser.WebDashboard/Html/scripts/DashboardPage.js
+++ b/MediaBrowser.WebDashboard/Html/scripts/DashboardPage.js
@@ -114,36 +114,36 @@
getClientType: function (connection) {
- if (connection.ClientType == "Dashboard") {
+ if (connection.Client.toLowerCase() == "dashboard") {
return "<img src='css/images/clients/html5.png' alt='Dashboard' title='Dashboard' />";
}
- if (connection.ClientType == "Pc") {
+ if (connection.Client.toLowerCase() == "mediabrowsertheater") {
- return "<img src='css/images/clients/mb.png' alt='Media Browser' title='Media Browser' />";
+ return "<img src='css/images/clients/mb.png' alt='Media Browser Theater' title='Media Browser Theater' />";
}
- if (connection.ClientType == "Android") {
+ if (connection.Client.toLowerCase() == "android") {
return "<img src='css/images/clients/android.png' alt='Android' title='Android' />";
}
- if (connection.ClientType == "Ios") {
+ if (connection.Client.toLowerCase() == "ios") {
return "<img src='css/images/clients/ios.png' alt='iOS' title='iOS' />";
}
- if (connection.ClientType == "WindowsRT") {
+ if (connection.Client.toLowerCase() == "windowsrt") {
return "<img src='css/images/clients/windowsrt.png' alt='Windows RT' title='Windows RT' />";
}
- if (connection.ClientType == "WindowsPhone") {
+ if (connection.Client.toLowerCase() == "windowsphone") {
return "<img src='css/images/clients/windowsphone.png' alt='Windows Phone' title='Windows Phone' />";
}
- if (connection.ClientType == "Dlna") {
+ if (connection.Client.toLowerCase() == "dlna") {
return "<img src='css/images/clients/dlna.png' alt='Dlna' title='Dlna' />";
}
- return connection.ClientType;
+ return connection.Client;
},
getNowPlayingImage: function (item) {