Permalink
Browse files

Prevented enter in area input fields from submitting form.

  • Loading branch information...
1 parent 999b673 commit 2a2de017023d76320c421fa3e1e59033211117ae @melinath melinath committed Mar 7, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 daguerre/static/daguerre/js/areawidget.daguerre.js
@@ -192,6 +192,11 @@ daguerre.jQuery(function($){
area.save();
};
});
+ area.row.find('input').keydown(function(e){
+ if (e.which == 13) {
+ e.preventDefault();
+ };
+ })
};
function AreaContainer(ele){

0 comments on commit 2a2de01

Please sign in to comment.