From ea8f146f08408a62f9171214510ceaa71229d141 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 2 Apr 2017 18:58:31 +0200 Subject: no longer displaying number as its own thing --- StoneIsland/www/js/lib/products/ProductView.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'StoneIsland/www/js/lib/products/ProductView.js') diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index a261218d..802ee6b6 100755 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -17,7 +17,6 @@ var ProductView = ScrollableView.extend({ this.scroller = new IScroll('#product', app.iscroll_options) this.$productHeader = this.$(".product-header") - this.$num = this.$(".num") this.$title = this.$(".title") this.$type = this.$(".type") this.$price = this.$(".price") @@ -114,9 +113,7 @@ var ProductView = ScrollableView.extend({ var descriptions = this.get_descriptions(details) - var name_partz = data['ModelNames'].split(' ') - var num = name_partz.shift() - var title = name_partz.join(' ') + var title = data['ModelNames'] var type = title_case( data['MicroCategory'] ) var price = "$" + data['DiscountedPrice'] + ".00" var details_description = descriptions['Details'] || "" @@ -165,7 +162,6 @@ var ProductView = ScrollableView.extend({ console.log( data['DefaultCode10'] ) - this.$num.html(num) this.$title.html(title) this.$type.html(type) this.$price.html(price) -- cgit v1.2.3-70-g09d2