app/views/myreplicator/home/index.html.erb in myreplicator-1.0.0 vs app/views/myreplicator/home/index.html.erb in myreplicator-1.0.1

- old
+ new

@@ -10,10 +10,11 @@ </td> <td><%= log.state %></td> <td><%= log.job_type %></td> <td><%= log.started_at.strftime("%Y-%m-%d %H:%M:%S") %></td> <td><%= chronos(@now.to_i - log.started_at.to_i) %></td> + <td><%= link_to 'kill job', kill_path(log), :class => 'kill'%></td> </tr> <% end %> </table> @@ -28,8 +29,11 @@ e.preventDefault(); var link = $(this); toggles.removeClass("on"); link.addClass("on"); jQuery(link.attr('href')).fadeIn().siblings("li").hide(); + }) + $("a.kill").click(function(e){ + if(confirm("Are you sure you wish to kill this running job?")!=true){e.preventDefault();} }) }) </script> \ No newline at end of file