Add Demo to Extras

- fix up songkick location breaking artist page
- add description and link for songkick metro area filter
This commit is contained in:
Ade
2014-08-30 22:17:30 +12:00
parent 3d22a66701
commit 46240fb7d1
5 changed files with 18 additions and 17 deletions

View File

@@ -167,7 +167,7 @@
songkick_filter_enabled = "true"
else:
songkick_filter_enabled = "false"
if not headphones.SONGKICK_LOCATION:
songkick_location = "none"
else:
@@ -190,11 +190,11 @@
function(data){
if (data['resultsPage'].totalEntries >= 1) {
if( ${songkick_filter_enabled} ) {
data.resultsPage.results.event = $.grep(data.resultsPage.results.event, function(element,index){
return element.venue.metroArea.id == ${songkick_location};
});
}
if( ${songkick_filter_enabled} ) {
data.resultsPage.results.event = $.grep(data.resultsPage.results.event, function(element,index){
return element.venue.metroArea.id == ${songkick_location};
});
}
var tourDate;