Permalink
Browse files

Fix enter key action in edit form

Closes #204
  • Loading branch information...
fzaninotto committed Dec 5, 2013
1 parent bf6be56 commit 68efc9b42e3eab64e285482375e736acd7ced31a
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/dashboard/views/_checkDetails.ejs
  2. +1 −1 app/dashboard/views/check_edit.ejs
@@ -53,7 +53,7 @@
<div class="controls">
<div class="input-prepend input-append">
<% if (check.lastTested) { %>
- <button class="btn" name="pause"><i class="icon-<%= check.isPaused ? 'play' : 'pause' %>"></i></button>
+ <a class="btn" name="pause"><i class="icon-<%= check.isPaused ? 'play' : 'pause' %>"></i></a>
<% } %>
<input type="text" name="check[interval]" value="<%= (check.interval / 1000).toFixed() %>" class="span2" />
<span class="add-on">s</span>
@@ -21,7 +21,7 @@ jQuery(document).ready(function($) {
});
// manage pause
- $('button[name="pause"]').click(function(e) {
+ $('a[name="pause"]').click(function(e) {
var button = $(this).children();
$.getJSON('/api/checks/<%= check._id %>/pause', function() {
if(button.hasClass('icon-pause')) {

0 comments on commit 68efc9b

Please sign in to comment.