Browse Source

Adding missing event namespace in form validation

pull/1978/head
Sven Perkmann 9 years ago
parent
commit
97e8bf5fda
1 changed files with 1 additions and 1 deletions
  1. 2
      src/definitions/behaviors/form.js

2
src/definitions/behaviors/form.js

@ -100,7 +100,7 @@ $.fn.form = function(fields, parameters) {
attachEvents: function(selector, action) { attachEvents: function(selector, action) {
action = action || 'submit'; action = action || 'submit';
$(selector) $(selector)
.on('click', function(event) {
.on('click' + eventNamespace, function(event) {
module[action](); module[action]();
event.preventDefault(); event.preventDefault();
}) })

Loading…
Cancel
Save