diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-07-17 12:28:15 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-08-03 13:31:08 +0100 |
commit | f0a20065e8129f9da5d48a8f29a37755de61e4bb (patch) | |
tree | 0888de2357f3d48652f6870a8ff2dd7afb6deb57 /web/cobrands/buckinghamshire/js.js | |
parent | 43d6b2e5fe9932c05865bde239db916aad380243 (diff) |
[UK] A few IE8-compatible JS fixes.
Diffstat (limited to 'web/cobrands/buckinghamshire/js.js')
-rw-r--r-- | web/cobrands/buckinghamshire/js.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/cobrands/buckinghamshire/js.js b/web/cobrands/buckinghamshire/js.js index a4cf46141..9094fdb8e 100644 --- a/web/cobrands/buckinghamshire/js.js +++ b/web/cobrands/buckinghamshire/js.js @@ -103,7 +103,7 @@ function bucks_owns_feature(f) { return f && f.attributes && f.attributes.feature_ty && - bucks_types.indexOf(f.attributes.feature_ty) > -1; + OpenLayers.Util.indexOf(bucks_types, f.attributes.feature_ty) > -1; } function bucks_does_not_own_feature(f) { @@ -167,7 +167,7 @@ fixmystreet.assets.add($.extend(true, {}, defaults, { if (fixmystreet.assets.selectedFeature()) { hide_responsibility_errors(); enable_report_form(); - } else if (bucks_types.indexOf(feature.attributes.feature_ty) != -1) { + } else if (OpenLayers.Util.indexOf(bucks_types, feature.attributes.feature_ty) != -1) { hide_responsibility_errors(); enable_report_form(); } else { |