Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Steam Specials: Code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jagtalon committed Sep 26, 2014
1 parent 3d459f3 commit 98e6617
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion share/spice/steam/specials/buy.handlebars
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Originial price: {{original_price}} <br>
Original price: {{original_price}} <br>
Savings: {{discount}} <br>
{{#if rating}}
Metascore: {{rating}} <br>
Expand Down
10 changes: 4 additions & 6 deletions share/spice/steam/specials/steam_specials.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}

var query = decodeURIComponent(queryexec);

// Extract our query
var gameids = query.split(",");
var results = [];
Expand Down Expand Up @@ -87,12 +87,13 @@
return {
image: item.image,
img: item.image,
img_m: item.image,
heading: item.name,
url: item.url,
price: "USD $" + (item.final/100),
price: "$" + (item.final/100),
brand: item.dev,
rating: item.metacritic,
original_price: "USD $" + (item.initial/100),
original_price: "$" + (item.initial/100),
discount: item.discount_percent + "%"
};
},
Expand All @@ -102,9 +103,6 @@
buy: Spice.steam_specials.buy,
rating: false
}
},
onShow: function() {
Spice.getDOM('specials').find(".tile__body").hide();
}
});
};
Expand Down

0 comments on commit 98e6617

Please sign in to comment.