Permalink
Browse files

support input[type=image]

  • Loading branch information...
khelll authored and mislav committed Feb 10, 2011
1 parent bb620a2 commit 7f2acc1811f62877611e16451530728b5e13dbe7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/rails.js
View
@@ -141,7 +141,7 @@
}
});
- $('form input[type=submit], form button[type=submit], form button:not([type])').live('click.rails', function() {
+ $('form input[type=submit], form input[type=image], form button[type=submit], form button:not([type])').live('click.rails', function() {
var button = $(this);
if (!allowAction(button)) return false;
// register the pressed submit button

0 comments on commit 7f2acc1

Please sign in to comment.