gadjo.js: fix use of .prop() to midify form action (#8180)

This commit is contained in:
Benjamin Dauvergne 2015-09-18 17:20:10 +02:00
parent 7a3dcd8ccb
commit 924acb54b5
1 changed files with 2 additions and 2 deletions

View File

@ -113,8 +113,8 @@
});
/* if the form doesn't have an @action attribute, set it to URL */
if (! $form.prop('action')) {
$form.prop('action', url);
if (! $form.attr('action')) {
$form.attr('action', url);
}
/* hide buttons from content and convert buttons (<button> and <a>)