8000 Detach previous batch_action click handler before attaching new one (es6) by sgara · Pull Request #5563 · activeadmin/activeadmin · GitHub
[go: up one dir, main page]

Skip to content

Detach previous batch_action click handler before attaching new one (es6) #5563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/assets/javascripts/active_admin/lib/batch_actions.es6
5500
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const onDOMReady = function() {
// Use ActiveAdmin.modal_dialog to prompt user if
// confirmation is required for current Batch Action
//
$('.batch_actions_selector li a').click(function(event){
$('.batch_actions_selector li a').off('click').on('click', function(event){
let message;
event.stopPropagation(); // prevent Rails UJS click event
event.preventDefault();
Expand Down
0