Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 4531cb2

Browse files
committed
Wire in product types
1 parent 8bf6e37 commit 4531cb2

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

css/obBase.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4413,21 +4413,21 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
44134413
transform: rotate(45deg);
44144414
}
44154415

4416-
.listingTypeDigital:before {
4416+
.listingTypeDIGITAL:before {
44174417
color: #EFEF4C;
44184418
content: "\f137";
44194419
font-family: Ionicons;
44204420
font-size: 12px;
44214421
}
44224422

4423-
.listingTypePhysical:before {
4423+
.listingTypePHYSICAL_GOOD:before {
44244424
color: #805C17;
44254425
content: "\f318";
44264426
font-family: Ionicons;
44274427
font-size: 12px;
44284428
}
44294429

4430-
.listingTypeService:before {
4430+
.listingTypeSERVICE:before {
44314431
color: #DEDEDE;
44324432
content: "\f2ad";
44334433
font-family: Ionicons;

js/templates/itemShort.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@
8282
</div>
8383
</div>
8484

85-
<% if(ob.type){ %><!-- type is not yet implemented -->
86-
<div class="listingType borderRadius3 js-item <% if(shipsToYou){ %>textOpacity90<% }else{ %>textOpacity25<% } %>">
87-
<span class="<% print('listingType'+ob.type) %>"></span>
85+
<% if(ob.contract_type){ %><!-- type is not yet implemented -->
86+
<div class="listingType borderRadius3 js-item textOpacity90">
87+
<span class="<% print('listingType'+ob.contract_type) %>"></span>
8888
</div>
8989
<% } %>
9090

js/views/homeVw.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ module.exports = baseVw.extend({
190190
var self = this,
191191
blocked,
192192
addressCountries = this.userModel.get('shipping_addresses').map(function(address){ return address.country }),
193-
userCountry = this.userModel.get('country');
193+
userCountry = this.userModel.get('country'),
194+
contract_type = item.contract_type;
194195

195196
addressCountries.push(userCountry);
196197

@@ -206,6 +207,7 @@ module.exports = baseVw.extend({
206207
item.discover = true;
207208
item.ownGuid = this.userModel.get('guid');
208209
item.userCountries = addressCountries;
210+
item.contract_type = contract_type;
209211

210212

211213
item.ownFollowing = this.ownFollowing.indexOf(item.guid) != -1;

0 commit comments

Comments
 (0)