From a803c088bcdbf920ef582776138f411a68c21bf8 Mon Sep 17 00:00:00 2001 From: Ben Foxall Date: Thu, 20 Jun 2013 18:07:54 +0100 Subject: [PATCH] update the organisation arcnav item - fixes #75 --- public/javascripts/arcnav.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/javascripts/arcnav.js b/public/javascripts/arcnav.js index 947d59d..d7125f4 100644 --- a/public/javascripts/arcnav.js +++ b/public/javascripts/arcnav.js @@ -29,7 +29,11 @@ var qs = $.param(query); _.each(['SectorCategory', 'Country', 'Reporter'], function(filterkey){ var href = '/filter/' + filterkey + (qs ? '?' + qs : ''); - $('.filter.' + filterkey.toLowerCase()).attr('href', href); + var key = filterkey.toLowerCase(); + + // the reporter is "funder" in the css, so we'll hack this across to that + if(key === 'reporter') key = 'funder'; + $('.filter.' + key).attr('href', href); });