Browse files

MINOR Fixed double form submit (in some cases button click events are…

…n't cancelled despite returning FALSE)
  • Loading branch information...
1 parent c117ef5 commit b836bce5215dd44715edf796055e0735300b10b1 @chillu chillu committed Mar 8, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 admin/javascript/LeftAndMain.EditForm.js
View
1 admin/javascript/LeftAndMain.EditForm.js
@@ -181,6 +181,7 @@
*/
onclick: function(e) {
$('.cms-content').submitForm(this.parents('form'), this);
+ e.preventDefault();
return false;
}
});

0 comments on commit b836bce

Please sign in to comment.