From 4c7e83ee60c7b7bc804430ac45b3d1874f14406c Mon Sep 17 00:00:00 2001 From: Alberto Vena Date: Sun, 29 Oct 2017 20:09:55 +0100 Subject: [PATCH] Remove useless before-highlight class from table lines Hovering tables actions some JS was adding extra classes on the previous line of the hovered line. There's no need for that class since we have no styles or behaviors related to it. --- backend/app/assets/javascripts/spree/backend/admin.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/app/assets/javascripts/spree/backend/admin.js b/backend/app/assets/javascripts/spree/backend/admin.js index 0ca0b2545b8..4d2c6caf1aa 100644 --- a/backend/app/assets/javascripts/spree/backend/admin.js +++ b/backend/app/assets/javascripts/spree/backend/admin.js @@ -20,13 +20,11 @@ Spree.ready(function() { var tr = $(this).closest('tr'); var klass = 'highlight action-' + $(this).data('action') tr.addClass(klass) - tr.prev().addClass('before-' + klass); }); $('table').on("mouseleave", 'td.actions a, td.actions button', function(){ var tr = $(this).closest('tr'); var klass = 'highlight action-' + $(this).data('action') tr.removeClass(klass) - tr.prev().removeClass('before-' + klass); }); });