diff --git a/dashboard-ui/css/images/tour/dashboard/chapters.png b/dashboard-ui/css/images/tour/dashboard/chapters.png new file mode 100644 index 000000000..f833bd955 Binary files /dev/null and b/dashboard-ui/css/images/tour/dashboard/chapters.png differ diff --git a/dashboard-ui/css/images/tour/dashboard/cinemamode.png b/dashboard-ui/css/images/tour/dashboard/cinemamode.png new file mode 100644 index 000000000..c2eed1dbf Binary files /dev/null and b/dashboard-ui/css/images/tour/dashboard/cinemamode.png differ diff --git a/dashboard-ui/css/images/tour/dashboard/dashboard.png b/dashboard-ui/css/images/tour/dashboard/dashboard.png new file mode 100644 index 000000000..79828727b Binary files /dev/null and b/dashboard-ui/css/images/tour/dashboard/dashboard.png differ diff --git a/dashboard-ui/css/images/tour/dashboard/notifications.png b/dashboard-ui/css/images/tour/dashboard/notifications.png new file mode 100644 index 000000000..4c1b40698 Binary files /dev/null and b/dashboard-ui/css/images/tour/dashboard/notifications.png differ diff --git a/dashboard-ui/css/images/tour/dashboard/plugins.png b/dashboard-ui/css/images/tour/dashboard/plugins.png new file mode 100644 index 000000000..f72b725a2 Binary files /dev/null and b/dashboard-ui/css/images/tour/dashboard/plugins.png differ diff --git a/dashboard-ui/css/images/tour/dashboard/scheduledtasks.png b/dashboard-ui/css/images/tour/dashboard/scheduledtasks.png new file mode 100644 index 000000000..b6a9da63f Binary files /dev/null and b/dashboard-ui/css/images/tour/dashboard/scheduledtasks.png differ diff --git a/dashboard-ui/css/images/tour/dashboard/subtitles.png b/dashboard-ui/css/images/tour/dashboard/subtitles.png new file mode 100644 index 000000000..fad5557cb Binary files /dev/null and b/dashboard-ui/css/images/tour/dashboard/subtitles.png differ diff --git a/dashboard-ui/css/images/tour/dashboard/users.png b/dashboard-ui/css/images/tour/dashboard/users.png new file mode 100644 index 000000000..814bca1f3 Binary files /dev/null and b/dashboard-ui/css/images/tour/dashboard/users.png differ diff --git a/dashboard-ui/dashboard.html b/dashboard-ui/dashboard.html index 8a07f5bc9..7cfa54138 100644 --- a/dashboard-ui/dashboard.html +++ b/dashboard-ui/dashboard.html @@ -16,6 +16,13 @@
' + Globalize.translate('LabelNoUnreadNotifications') + '
'); - btn.hide(); + + if (btn) { + btn.hide(); + } return; } Notifications.total = totalRecordCount; - if (list.filter(function (n) { + if (btn) { + if (list.filter(function (n) { - return !n.IsRead; + return !n.IsRead; - }).length) { - btn.show(); - } else { - btn.hide(); + }).length) { + btn.show(); + } else { + btn.hide(); + } } var html = ''; diff --git a/dashboard-ui/thirdparty/mediabrowser.apiclient.js b/dashboard-ui/thirdparty/mediabrowser.apiclient.js index 586b759d8..9dd9b1139 100644 --- a/dashboard-ui/thirdparty/mediabrowser.apiclient.js +++ b/dashboard-ui/thirdparty/mediabrowser.apiclient.js @@ -334,7 +334,7 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi throw new Error("null userId"); } - if (!idList || !idList.length) { + if (!idList) { throw new Error("null idList"); }