Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix observation links, following URI structure change

  • Loading branch information...
commit 48523ff109e43fda5325287e29e1bee68f5882fb 1 parent 0983411
@RicSwirrl RicSwirrl authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 javascripts/swirrl/sidebar-manager.js
View
7 javascripts/swirrl/sidebar-manager.js
@@ -14,7 +14,12 @@
var currentScoreDomainConfig = window.swirrl.scoreDomainConfig[scoreDomain];
- lsoaTemplate.find("a.observation").attr('href', 'http://opendatacommunities.org/id/IMD/2010/' + scoreDomain + '/LSOA/' + lsoaNotation );
+ if (scoreDomain == 'score') {
+ lsoaTemplate.find("a.observation").attr('href', 'http://opendatacommunities.org/id/IMD/2010/IMD-score/LSOA/' + lsoaNotation );
+ } else {
+ lsoaTemplate.find("a.observation").attr('href', 'http://opendatacommunities.org/id/IMD/2010/IMD-' + scoreDomain + '-score/LSOA/' + lsoaNotation );
+ }
+
lsoaTemplate.find(".score_value").html(data.score);
lsoaTemplate.find(".score_name").html(currentScoreDomainConfig['human-name']);
lsoaTemplate.find(".max_score").html(currentScoreDomainConfig['max']);
Please sign in to comment.
Something went wrong with that request. Please try again.