From aff43d78c55ce7a659f8e7d0bf28bf483fa33a7b Mon Sep 17 00:00:00 2001 From: Joe Siltberg Date: Fri, 29 Nov 2019 09:04:40 +0100 Subject: [FixaMinGata] Backwards-compatibility changes in our js.js --- web/cobrands/fixamingata/js.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/cobrands/fixamingata/js.js') 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); -- cgit v1.2.3