Skip to content

Commit

Permalink
WEB: Use a single selector when changing cell contents
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Jan 1, 2014
1 parent 1ac041f commit 187ab97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion javascripts/game_demos.js
Expand Up @@ -68,7 +68,8 @@ function hideDuplicates() {
buttonHTML = "<img src='images/cat-blank.png' class='noSubcat'>";
}

curRow.children("td:nth-child(1)").html(buttonHTML + curRow.children("td:nth-child(1)").html());
var curCell = curRow.children("td:nth-child(1)");
curCell.html(buttonHTML + curCell.html());
});
}

Expand Down

0 comments on commit 187ab97

Please sign in to comment.