fixed bugs with address in incognito and NaN in delivery costs and total

This commit is contained in:
Senad Uka
2015-03-25 06:12:38 +01:00
parent 5bc77597a4
commit d8668115ed
12 changed files with 4 additions and 3 deletions

View File

@@ -12,7 +12,8 @@ var Place = Backbone.Model.extend({
},
url: function() {
return Globals.ApiUrl + '/place/' + this.postalCode.trim();
var postalCode = this.postalCode || "00000";
return Globals.ApiUrl + '/place/' + postalCode.trim();
}
});