diff --git a/add.php b/add.php index 23aba0e22..b70b53ad7 100644 --- a/add.php +++ b/add.php @@ -77,6 +77,9 @@ $(document).ready(function(){ $("#form_'.$id_module.'-'.$id_plugin.'").find("form").ajaxForm({ url: "'.$rootdir.$directory.'/actions.php", + beforeSubmit: function(arr, $form, options) { + return $form.parsley().validate(); + }, data: data, type: "post", success: function(data){ diff --git a/modules/anagrafiche/add.php b/modules/anagrafiche/add.php index 90d7d89eb..d8a1339bc 100644 --- a/modules/anagrafiche/add.php +++ b/modules/anagrafiche/add.php @@ -10,13 +10,13 @@ if (get('tipoanagrafica') != '') { } echo ' -
+
- {[ "type": "text", "label": "'.tr('Ragione sociale').'", "name": "ragione_sociale", "required": 1, "value": "" ]} + {[ "type": "text", "label": "'.tr('Ragione sociale').'", "name": "ragione_sociale", "required": 1 ]}
@@ -31,16 +31,3 @@ echo '
'; -?> - \ No newline at end of file