updating entries from overlay

This commit is contained in:
Jens Kraemer
2020-05-08 16:56:49 +08:00
parent 30bcd5ff8c
commit 5653845c28
5 changed files with 24 additions and 9 deletions

View File

@@ -1 +1,4 @@
hideModal();
window.stopwatch.highlightRunningTimer(
<%= raw Stopwatch::Timer.new(User.current).to_json %>
);

View File

@@ -1,5 +1,9 @@
hideModal();
<% 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', '600px');
showModal('ajax-modal', '700px');
<% end %>