Add visual indication for listing buffer actions (#5411)

Michael asked that this behavior be extended to the buffer actions on
internal/listings as well.

We should probably look for an opportunity to refactor the JS currently
living in article_script.erb.
This commit is contained in:
Jacob Herrington 2020-01-14 11:03:58 -06:00 committed by Ben Halpern
parent 9b2886979a
commit 65c9989cf9

View file

@ -20,8 +20,11 @@
}).success(function (json) {
form.parents(".card").addClass("highlighted-bg")
form.parents(".card").addClass("highlighted-border")
form.parents(".single-internal-listing").addClass("highlighted-bg")
form.parents(".single-internal-listing").addClass("highlighted-border")
setTimeout(function () {
form.parents(".card").removeClass("highlighted-bg")
form.parents(".single-internal-listing").removeClass("highlighted-bg")
}, 350)
});
return false; // prevents normal behaviour