';
if (AppInfo.enableBackButton) {
- html += '';
+ html += '';
}
- html += '';
+ html += '';
html += '
' + Globalize.translate('ButtonHome') + '
';
html += '
';
- html += '';
+ html += '';
+ html += '';
- html += '';
+ html += '';
html += '
';
html += '';
html += '
';
- html += '';
+ html += '';
if (!showUserAtTop()) {
html += '
';
@@ -311,9 +308,15 @@
html += Dashboard.getToolsMenuHtml(page);
+ html = html.split('href=').join('onclick="return LibraryMenu.onLinkClicked(this);" href=');
+
$('.dashboardDrawerContent', drawer).html(html);
}
+ function replaceAll(string, find, replace) {
+ return string.replace(new RegExp(escapeRegExp(find), 'g'), replace);
+ }
+
function refreshBottomUserInfoInDrawer(user, drawer) {
var html = '';
@@ -352,7 +355,7 @@
}
if (showUserAtTop()) {
- html += '' + Globalize.translate('ButtonSignOut') + '';
+ html += '' + Globalize.translate('ButtonSignOut') + '';
}
html += '
';
@@ -515,6 +518,20 @@
}, 300);
}
+ return false;
+ },
+
+ onLogoutClicked: function () {
+ // There doesn't seem to be a way to detect if the drawer is in the process of opening, so try to handle that here
+ if ((new Date().getTime() - lastOpenTime) > 200) {
+
+ closeMainDrawer();
+
+ setTimeout(function () {
+ Dashboard.logout();
+ }, 300);
+ }
+
return false;
}
};
@@ -525,12 +542,16 @@
if (info.isLocalPlayer) {
- $('.btnCast').addClass('btnDefaultCast').removeClass('btnActiveCast');
+ $('.btnCast').removeClass('btnActiveCast').each(function () {
+ this.icon = 'cast';
+ });
$('.headerSelectedPlayer').html('');
} else {
- $('.btnCast').removeClass('btnDefaultCast').addClass('btnActiveCast');
+ $('.btnCast').addClass('btnActiveCast').each(function () {
+ this.icon = 'cast-connected';
+ });
$('.headerSelectedPlayer').html((info.deviceName || info.name));
}
diff --git a/dashboard-ui/scripts/nowplayingbar.js b/dashboard-ui/scripts/nowplayingbar.js
index 9cca4e8585..a859130a74 100644
--- a/dashboard-ui/scripts/nowplayingbar.js
+++ b/dashboard-ui/scripts/nowplayingbar.js
@@ -29,17 +29,17 @@
html += '';
// The onclicks are needed due to the return false above
- html += '';
- html += '';
+ html += '';
+ html += '';
- html += '';
+ html += '';
- html += '';
- html += '';
+ html += '';
+ html += '';
- html += '';
+ html += '';
- html += '';
+ html += '';
html += '';
@@ -48,8 +48,8 @@
html += '';
html += '';
- html += '';
- html += '';
+ html += '';
+ html += '';
html += '
';
html += '';
@@ -334,7 +334,7 @@
nowPlayingTextElement.html(nameHtml);
var url;
- var imgHeight = 50;
+ var imgHeight = 60;
var nowPlayingItem = state.NowPlayingItem;
diff --git a/dashboard-ui/scripts/pluginspage.js b/dashboard-ui/scripts/pluginspage.js
index 71b4ca60d5..0624797a0d 100644
--- a/dashboard-ui/scripts/pluginspage.js
+++ b/dashboard-ui/scripts/pluginspage.js
@@ -84,10 +84,8 @@
html += '
';
- html += '
';
- html += '';
+ html += '
';
+ html += '';
html += "
";
html += "
";
diff --git a/dashboard-ui/scripts/selectserver.js b/dashboard-ui/scripts/selectserver.js
index 3d2016ce12..4f2a98f4f2 100644
--- a/dashboard-ui/scripts/selectserver.js
+++ b/dashboard-ui/scripts/selectserver.js
@@ -83,8 +83,8 @@
html += '
';
if (server.showOptions !== false) {
- html += '