Orbit/app/assets/javascripts/ajax_form.js

7 lines
158 B
JavaScript
Raw Normal View History

$(document).on('click', '#ajax_form_submit', function(){
$('#ajaxForm').ajaxSubmit({
beforeSubmit: function(a,f,o) {
o.dataType = 'script';
}
});
});