This commit is contained in:
Dante
2015-06-19 13:21:37 -04:00
parent 85cc7b1222
commit 9d5c49c20b

View File

@@ -467,7 +467,7 @@ var setActiveDashboard = function () {
if (dashboard == null) { if (dashboard == null) {
return; return;
} }
$('#titleH4').text(dashboard.title); $('#titleH4').html(dashboard.title);
} }
var initialDraw = function () { var initialDraw = function () {
@@ -476,9 +476,6 @@ var initialDraw = function () {
.then(function(dashboardsVM) { .then(function(dashboardsVM) {
fillDashboardsList(dashboardsVM); fillDashboardsList(dashboardsVM);
if (window.currentDashboardId == null) {return;} if (window.currentDashboardId == null) {return;}
console.log(tsPresenter);
console.log(window.currentDashboardId);
tsPresenter.initializePresenter(window.currentDashboardId) tsPresenter.initializePresenter(window.currentDashboardId)
.done(function (data){ .done(function (data){
bindTimeSeriesLists(tsPresenter); bindTimeSeriesLists(tsPresenter);
@@ -564,7 +561,7 @@ var defaultEndDate = function () {
var fillDashboardsList = function (presenterData) { var fillDashboardsList = function (presenterData) {
if (presenterData == null || presenterData.length == 0) { if (presenterData == null || presenterData.length == 0) {
$('#dashboardMessage').text(G_STRING['ID_GRID_PAGE_NO_DASHBOARD_MESSAGE']); $('#dashboardMessage').text(G_STRING['ID_GRID_PAGE_NO_DASHBOARD_MESSAGE']);
$('#titleH4').text(G_STRING['ID_GRID_PAGE_NO_DASHBOARD_MESSAGE']); $('#titleH4').html(G_STRING['ID_GRID_PAGE_NO_DASHBOARD_MESSAGE']);
$('#compareIndicators').hide(); $('#compareIndicators').hide();
} }
_.templateSettings.variable = "dashboard"; _.templateSettings.variable = "dashboard";