Skip to content

Commit

Permalink
Remove localhost absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
Awarua- committed May 4, 2016
1 parent 3c2ef8c commit a17e3dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/elements/af-login/af-login.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<paper-material elevation="1" class="layout center">
<p class="paper-font-headline">Opps looks like you don't have access to this data</p>
<p class="paper-font-subhead">Login using your Agilefant credentials</p>
<form id="form" is="iron-form" method="post" action="http://localhost/rest/login" on-iron-form-response="_handleResponse" on-iron-form-error="_handleError">
<form id="form" is="iron-form" method="post" action="/rest/login" on-iron-form-response="_handleResponse" on-iron-form-error="_handleError">
<p class="warning paper-font-body1">[[errorMessage]]</p>
<paper-input id="userNameInput" type="text" name="username" label="UserCode"></paper-input>
<paper-input id="passwordInput" type="password" name="password" label="Password"></paper-input>
Expand Down
2 changes: 1 addition & 1 deletion app/elements/af-team/af-team-person-charts.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
return;
}
var computedSprintId = parseInt(sprintId) + 1;
return 'http://localhost/rest/' + personId + '/sprint/'+ computedSprintId;
return '/rest/' + personId + '/sprint/'+ computedSprintId;
},

handlePersonChartResponse: function(event, detail) {
Expand Down
6 changes: 3 additions & 3 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<template is="dom-bind" id="app">

<iron-ajax auto
url="http://localhost/rest/teams"
url="/rest/teams"
handle-as="json"
last-response="{{teamList}}"></iron-ajax>

Expand Down Expand Up @@ -244,7 +244,7 @@
else {
computedSprintId = ''
}
return 'http://localhost/rest/' + teamId + '/sprint/summary/'+ computedSprintId;
return '/rest/' + teamId + '/sprint/summary/'+ computedSprintId;
};

app.addEventListener('personBeginLoading', function(event) {
Expand Down Expand Up @@ -277,7 +277,7 @@
return;
}
var computedSprintId = parseInt(sprintId) + 1;
return 'http://localhost/rest/' + personId + '/sprint/'+ computedSprintId;
return '/rest/' + personId + '/sprint/'+ computedSprintId;
};

app.handleResponse = function(event, detail) {
Expand Down

0 comments on commit a17e3dc

Please sign in to comment.