Closed adrianoresende closed 9 years ago
How i make function after click confirm in Rails? Exemple javascript:
swal( { ... }, function(isConfirm){ ... } );
Exemple HTML Rails:
<%= link_to raw('<i class="fa fa-trash-o"></i>'), admin_remover_imovel_foto_path(:asset_id => asset.id), :remote => true, :method => :post, :class => 'remove-archive', :data => { :confirm => 'Are you sure?', // :function => javascript function? } %>
This is isn't implemented yet, maybe next week might be on it.
Pull request --> https://github.com/mois3x/sweet-alert-rails-confirm/pull/21
When will this be in a release?
Released
How i make function after click confirm in Rails? Exemple javascript:
Exemple HTML Rails: