From c374e3c671a65d24fb3bdf9abd493b215e963d10 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 28 Jun 2013 10:11:09 -0400 Subject: [PATCH] made xml saver methods a little cleaner --- dashboard-ui/dashboard.html | 2 +- dashboard-ui/scripts/dashboardpage.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/dashboard.html b/dashboard-ui/dashboard.html index cb9aaef8c5..82ee918d43 100644 --- a/dashboard-ui/dashboard.html +++ b/dashboard-ui/dashboard.html @@ -26,7 +26,7 @@

-

Program data path:

+

Bookmark url:

diff --git a/dashboard-ui/scripts/dashboardpage.js b/dashboard-ui/scripts/dashboardpage.js index 695457d488..8f1d1f5a2a 100644 --- a/dashboard-ui/scripts/dashboardpage.js +++ b/dashboard-ui/scripts/dashboardpage.js @@ -281,6 +281,12 @@ } $('#programDataPath', page).html(dashboardInfo.SystemInfo.ProgramDataPath); + + if (window.location.toString().toLowerCase().indexOf('localhost') == -1) { + $('#pProgramDataPath', page).hide(); + } else { + $('#pProgramDataPath', page).hide(); + } var host = ApiClient.serverHostName();