Commits

Anonymous committed fdc9e11

[index][xs]: fix bug so that title is set as you switch datasets.

  • Participants
  • Parent commits d1b79f5

Comments (0)

Files changed (1)

File eurostat/templates/index.html

       link.attr('id', 'dataset-' + thisId);
       listingElement.append($('<li></li>').append(link));
     }
-    listingElement.live
     listingElement.find('a').live('click', function(e) {
       e.preventDefault();
       // strip off 'dataset-'
       var thisId = e.target.id.slice(8);
-      plotDataset(thisId, data[thisId], cachedir);
+      plotDataset(thisId, data[thisId].title, cachedir);
     });
     plotDataset(datasetId, data[datasetId].title, cachedir);
   });