diff options
author | Marius Halden <marius.h@lden.org> | 2017-05-28 21:31:42 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2017-05-28 21:31:42 +0200 |
commit | 987124b09a32248414faf4d0d6615d43b29ac6f6 (patch) | |
tree | a549db8af723c981d3b346e855f25d6fd5ff8aa7 /web/cobrands/harrogate/js.js | |
parent | dbf56159e44c1560a413022451bf1a1c4cb22a52 (diff) | |
parent | a085b63ce09f87e83b75cda9b9cd08aadfe75d61 (diff) |
Merge tag 'v2.0.4' into fiksgatami-dev
Diffstat (limited to 'web/cobrands/harrogate/js.js')
-rw-r--r-- | web/cobrands/harrogate/js.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/web/cobrands/harrogate/js.js b/web/cobrands/harrogate/js.js deleted file mode 100644 index 3c0e41d26..000000000 --- a/web/cobrands/harrogate/js.js +++ /dev/null @@ -1,34 +0,0 @@ -// we link to the informational articles rather than the forms, because in some -// cases the former have more information or links to track progress of faults -// etc.. - -(function() { - -var links = { - 'Bus stops': 'http://www.northyorks.gov.uk/article/25853/Bus-stops-and-shelters', - // Pavements/footpaths (multiple options) - 'Potholes': 'http://www.northyorks.gov.uk/article/25215/Roads---potholes', - // Roads/highways (multiple options) - 'Road traffic signs': 'http://www.northyorks.gov.uk/article/25667/Road-signs-and-bollards', - // Street lighting (not considered, as also a Harrogate category) - 'Traffic lights': 'http://www.northyorks.gov.uk/article/25626/Traffic-lights', - 'default': 'http://www.northyorks.gov.uk/article/28237/Report-it-online' -}; - -$(function () { - var notice = $('.nycc-notice'); - $("#problem_form").on("change.category", "select#form_category", function(){ - var cat = $(this).val(); - if (cat.search(/NYCC/) > 0) { - cat = cat.replace(' (NYCC)', ''); - var link = links[cat] || links ['default']; - notice.find('a').attr({ href: link }); - notice.show(); - } - else { - notice.hide(); - } - }); -}); - -})(); |