Files
stopwatch/app/views/stopwatch_timers/update.js.erb
2020-07-23 08:35:01 +08:00

10 lines
280 B
Plaintext

<% if @success %>
hideModal();
<% else %>
$('#ajax-modal').html('<%= j render partial: 'stopwatch_timers/edit' %>');
<% end %>
<% if params[:continue] %>
$('#ajax-modal').html('<%= j render partial: 'stopwatch_timers/new' %>');
showModal('ajax-modal', '700px');
<% end %>