diff --git a/dashboard-ui/dashboard.html b/dashboard-ui/dashboard.html index 9bce7f6945..dec9d4c913 100644 --- a/dashboard-ui/dashboard.html +++ b/dashboard-ui/dashboard.html @@ -15,7 +15,6 @@
Version
- + +Program data path:
+ diff --git a/dashboard-ui/scripts/dashboardpage.js b/dashboard-ui/scripts/dashboardpage.js index b0327f4e8f..e36c7854ad 100644 --- a/dashboard-ui/scripts/dashboardpage.js +++ b/dashboard-ui/scripts/dashboardpage.js @@ -273,6 +273,21 @@ $('#divRunningTasks', page).html(html).trigger('create'); }, + bookmarkPageIfSupported: function (url) { + + if (window.sidebar && window.sidebar.addPanel) { // Mozilla Firefox Bookmark + window.sidebar.addPanel("Media Browser", url, ''); + + } else if (window.external && window.external.AddFavorite) { // IE Favorite + window.external.AddFavorite(url, "Media Browser"); + + } else { // webkit - safari/chrome + return false; + } + + return true; + }, + renderSystemInfo: function (dashboardInfo) { Dashboard.updateSystemInfo(dashboardInfo.SystemInfo); @@ -289,6 +304,14 @@ $('#ports', page).html('Running on ports ' + port + ' and ' + dashboardInfo.SystemInfo.WebSocketPortNumber + ''); } + $('#programDataPath', page).html(dashboardInfo.SystemInfo.ProgramDataPath); + + var host = ApiClient.serverHostName(); + + var url = "http://" + host + ":" + port + "/mediabrowser"; + + $('#bookmarkUrl', page).html(url).attr("href", url); + if (dashboardInfo.RunningTasks.filter(function (task) { return task.Id == dashboardInfo.ApplicationUpdateTaskId;