546
edits
No edit summary |
No edit summary |
||
Line 279: | Line 279: | ||
$(document).ready(function () { | $(document).ready(function () { | ||
var form_container = $('.form-translation-request'); | var form_container = $('.form-translation-request'); | ||
if (typeof form_container == 'undefined' || form_container.length == 0) { | |||
return false; | |||
} | |||
var form_html = form_container.html(); | var form_html = form_container.html(); | ||
form_container.html('<form action=" | form_container.html('<form action="/applicationform/" method="post" autocomplete="on"></form>'); | ||
var form_el = form_container.children('form'); | var form_el = form_container.children('form'); | ||
Line 298: | Line 302: | ||
} | } | ||
submit_button.prop('disabled', true); | // submit_button.prop('disabled', true); | ||
ajax = $.ajax({ | ajax = $.ajax({ | ||
url: form_el.attr('action'), | url: form_el.attr('action'), |