Skip to content

Commit

Permalink
Fix keneanung/#3
Browse files Browse the repository at this point in the history
The ingredient tree and shopping list should now show tooltips again instead of "loading" indefinitely.
  • Loading branch information
keneanung committed Oct 8, 2014
1 parent f0cde49 commit f549d5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion controllers/helpers.php
Expand Up @@ -284,7 +284,7 @@ function buildMultiRecipeTree($item, $app, $recipe = null) {

function buildRecipeTree($item, $app, $recipe = null, $multiplier = 1) {
$tree = array(
'id' => $item->getDataId(),
'dataId' => $item->getDataId(),
'name' => $item->getName(),
'href' => $app['url_generator']->generate('item', array('dataId' => $item->getDataId())),
'rarity' => $item->getRarityName(),
Expand Down
6 changes: 3 additions & 3 deletions webroot/assets/js/crafting.js
Expand Up @@ -20,10 +20,10 @@ var Crafting = function(item, container, summarycontainer) {

ingredients = {};
$.each(topentry.ingredients(), function(k, ingredient) {
if (ingredients[ingredient[1].id] == undefined) {
ingredients[ingredient[1].id] = ingredient;
if (ingredients[ingredient[1].dataId] == undefined) {
ingredients[ingredient[1].dataId] = ingredient;
} else {
ingredients[ingredient[1].id][0] += ingredient[0];
ingredients[ingredient[1].dataId][0] += ingredient[0];
}
});

Expand Down

0 comments on commit f549d5b

Please sign in to comment.