Skip to content

Commit

Permalink
Updated for new page layout on JE, v0.8 released
Browse files Browse the repository at this point in the history
  • Loading branch information
dutts committed Mar 11, 2015
1 parent c53cb36 commit ee76003
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions addon/data/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function ApplyFilter(ratingFilterRange, restaurantEntries) {
});
}

var restaurantEntries = $("article");
var restaurantEntries = $("div.restaurant");

var config = document.createElement('div');
config.id = "nomorvom_config"
Expand Down Expand Up @@ -69,12 +69,12 @@ for (var i = 0; i <= vals; i++) {

config.appendChild(scoreFilterSlider);

$("div#SearchResults").prepend(config);
$("div.restaurants").prepend(config);

restaurantEntries.each(function () {
var _this = $(this);
var name = $("h3.restaurantDetailsName a:first", this).text();
var address = $("address:first", this).text();
var name = $("h2.name a:first", this).text().trim();
var address = $("p.address:first", this).text().trim();

var url = "http://api.ratings.food.gov.uk/Establishments?name=" + encodeURIComponent(name) + "&address=" + encodeURIComponent(address);

Expand Down
Binary file modified addon/nomorvom.xpi
Binary file not shown.
2 changes: 1 addition & 1 deletion addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"description": "Never eat from a dodgy takeaway again. Display food.gov.uk food hygiene scores in your Just Eat search results.",
"author": "Richard Dutton",
"license": "MPL 2.0",
"version": "0.6"
"version": "0.8"
}

0 comments on commit ee76003

Please sign in to comment.