Skip to content

Commit

Permalink
Adding missing event namespace in form validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Perkmann committed Mar 18, 2015
1 parent 5b9baa7 commit 97e8bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definitions/behaviors/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ $.fn.form = function(fields, parameters) {
attachEvents: function(selector, action) {
action = action || 'submit';
$(selector)
.on('click', function(event) {
.on('click' + eventNamespace, function(event) {
module[action]();
event.preventDefault();
})
Expand Down

0 comments on commit 97e8bf5

Please sign in to comment.