Permalink
Browse files

popup

  • Loading branch information...
2 parents 03fa367 + 2bddd36 commit 06876cfab4a394a3407b7198efd553e49e4b1880 Premasagar Rose committed Jan 29, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 code.js
View
@@ -91,13 +91,13 @@ function createNewspapers(papers) {
$('.newspapers').append(li);
var klass = name.toLowerCase().replace(/ /, '-');
li.addClass(klass);
- $('<h2></h2>').text(name).appendTo(li);
var ul = $('<ul class="parties"></ul>').appendTo(li);
var total = 0;
$.each(parties, function(party_name, obj) {
total += obj.total;
});
+ $('<h2></h2>').text(name + ' (' + total + ')').appendTo(li);
$.each(parties, function(party_name, obj) {
var klass = party_name.toLowerCase().replace(/ /, '-');

0 comments on commit 06876cf

Please sign in to comment.