Bugfix: aggiunto supporto cartella custom actions in add.php
This commit is contained in:
parent
4e25b26524
commit
74e924c3bb
8
add.php
8
add.php
|
@ -72,11 +72,17 @@ $(document).ready(function(){
|
|||
echo '
|
||||
data.'.$key.' = "'.$value.'";';
|
||||
}
|
||||
|
||||
if (file_exists($docroot.$directory.'/custom/actions.php')) {
|
||||
$url = $rootdir.$directory.'/custom/actions.php';
|
||||
} elseif (file_exists($docroot.$directory.'/actions.php')) {
|
||||
$url = $rootdir.$directory.'/actions.php';
|
||||
}
|
||||
|
||||
echo '
|
||||
|
||||
$("#form_'.$id_module.'-'.$id_plugin.'").find("form").ajaxForm({
|
||||
url: "'.$rootdir.$directory.'/actions.php",
|
||||
url: "'.$url.'",
|
||||
beforeSubmit: function(arr, $form, options) {
|
||||
return $form.parsley().validate();
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue