diff options
author | Joe Siltberg <git@joesiltberg.se> | 2019-11-29 09:04:40 +0100 |
---|---|---|
committer | Joe Siltberg <git@joesiltberg.se> | 2019-11-29 09:09:47 +0100 |
commit | aff43d78c55ce7a659f8e7d0bf28bf483fa33a7b (patch) | |
tree | feeb08516e25027d980b896037fa6601940900d5 /web/cobrands/fixamingata/js.js | |
parent | dd1b20b2d03ea91182992a4f91f8ec8bc72538d7 (diff) |
[FixaMinGata] Backwards-compatibility changes in our js.js
Diffstat (limited to 'web/cobrands/fixamingata/js.js')
-rw-r--r-- | web/cobrands/fixamingata/js.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/cobrands/fixamingata/js.js b/web/cobrands/fixamingata/js.js index 5af23002a..94fa2034e 100644 --- a/web/cobrands/fixamingata/js.js +++ b/web/cobrands/fixamingata/js.js @@ -7,7 +7,7 @@ fixmystreet.inspect_form_no_scroll_on_load = 1; // Hopefully we can get rid of this eventually if Chrome changes // its behaviour. fixmystreet.fixChromeAutocomplete = function() { - let title = document.getElementById("form_title"); + var title = document.getElementById("form_title"); if (title) { if (title.value == "" || @@ -15,6 +15,6 @@ fixmystreet.fixChromeAutocomplete = function() { title.value = ""; } } -} +}; $(fixmystreet).on('report_new:category_change', fixmystreet.fixChromeAutocomplete); |