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:
parent
9b2886979a
commit
65c9989cf9
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue