From bc33df665955ed147f67c6669c517db99ccb76c6 Mon Sep 17 00:00:00 2001 From: Cillian O'Ruanaidh Date: Fri, 14 Jan 2022 12:07:33 +0000 Subject: [PATCH] Remove unused inline JavaScript from products/_form.html.haml For #8699. This code, which was introduced in 1309d80f65827a9db4b3d0cb78a1f1313b76585d, does not appear to be used. The CSS at https://github.com/openfoodfoundation/openfoodnetwork/blob/master/app/webpacker/css/admin/sections/products.scss#L6 is used instead. --- app/views/spree/admin/products/_form.html.haml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/views/spree/admin/products/_form.html.haml b/app/views/spree/admin/products/_form.html.haml index f9f90443f1..d2001a6e58 100644 --- a/app/views/spree/admin/products/_form.html.haml +++ b/app/views/spree/admin/products/_form.html.haml @@ -58,7 +58,3 @@ %div .clear - -- unless Rails.env.test? - :javascript - $('.select2-container').css({width: '20em'})