Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Fix enter key action in edit form
Browse files Browse the repository at this point in the history
Closes #204
  • Loading branch information
fzaninotto committed Dec 5, 2013
1 parent bf6be56 commit 68efc9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/dashboard/views/_checkDetails.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/views/check_edit.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 68efc9b

Please sign in to comment.