local host problem calls solved

This commit is contained in:
Dante
2015-04-29 12:15:59 -04:00
parent 5daf2a6a93
commit 4ef933e406
4 changed files with 10 additions and 8 deletions

View File

@@ -1,8 +1,8 @@
var ViewDashboardModel = function (oauthToken, server, workspace) {
this.server = server;
this.workspace = workspace;
//this.baseUrl = "/api/1.0/" + workspace + "/";
this.baseUrl = "http://127.0.0.1:8080/api/1.0/workflow/";
this.baseUrl = "/api/1.0/" + workspace + "/";
//this.baseUrl = "http://127.0.0.1:8080/api/1.0/workflow/";
this.oauthToken = oauthToken;
this.helper = new ViewDashboardHelper();
this.cache = [];

View File

@@ -432,6 +432,7 @@ var selectDefaultMonthAndYear = function () {
}
var initialDraw = function () {
selectDefaultMonthAndYear();
presenter.getUserDashboards(pageUserId)
.then(function(dashboardsVM) {
fillDashboardsList(dashboardsVM);
@@ -439,7 +440,6 @@ var initialDraw = function () {
/**** window initialization with favorite dashboard*****/
presenter.getDashboardIndicators(window.currentDashboardId, defaultInitDate(), defaultEndDate())
.done(function(indicatorsVM) {
selectDefaultMonthAndYear();
fillIndicatorWidgets(indicatorsVM);
loadIndicator(getFavoriteIndicator().id, defaultInitDate(), defaultEndDate());
});