added price per unit to item details page
This commit is contained in:
@@ -4,16 +4,8 @@ var Globals = require('../globals');
|
||||
var Item = Backbone.Model.extend({
|
||||
urlRoot : Globals.ApiUrl + '/item',
|
||||
|
||||
getFrontEndUrl : function(withHashPrefix) {
|
||||
var hashPrefix = "";
|
||||
if (withHashPrefix) {
|
||||
hashPrefix = "#!/";
|
||||
}
|
||||
var slug = this.get('name').toLowerCase().replace(/\s+/g,"-");
|
||||
return hashPrefix + "artikal/" + this.get('id') + "/" + slug
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user