mirror of
https://github.com/rickbarrette/stopwatch.git
synced 2026-04-02 09:51:57 -04:00
'Start/Stop tracking' on issues#show
This commit is contained in:
8
app/views/stopwatch_issue_timers/start.js.erb
Normal file
8
app/views/stopwatch_issue_timers/start.js.erb
Normal file
@@ -0,0 +1,8 @@
|
||||
<% if @started_time_entry %>
|
||||
window.stopwatch.timerStarted(
|
||||
<%= raw Stopwatch::Timer.new(User.current).to_json %>
|
||||
);
|
||||
<% else %>
|
||||
$('#ajax-modal').html('<%= j render partial: 'new' %>');
|
||||
showModal('ajax-modal', '700px');
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user