|
@ -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(); |
|
|
}) |
|
|
}) |
|
|