You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to override the default confirm dialog in rails_ujs to add different possibilities (a nice modal instead of the default box, add a prompt before destroying super-sensitive data like github does with repos, etc.)
One possibility would be to reference the method as Rails.handleConfirm instead of using a variable here :
I would like to override the default confirm dialog in
rails_ujs
to add different possibilities (a nice modal instead of the default box, add a prompt before destroying super-sensitive data like github does with repos, etc.)One possibility would be to reference the method as
Rails.handleConfirm
instead of using a variable here :rails/actionview/app/assets/javascripts/rails-ujs/start.coffee
Line 45 in 896ee2b
Like that, we could override it between the
import
and the call toRails.start()
Even better, if we could extract the code of the confirm call
rails/actionview/app/assets/javascripts/rails-ujs/features/confirm.coffee
Line 23 in 896ee2b
What do you think ?
Thanks !
The text was updated successfully, but these errors were encountered: