1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-29 07:02:41 +01:00

Bugfix: aggiunto supporto cartella custom actions in add.php

This commit is contained in:
Bacca97 2018-03-27 11:55:12 +02:00
parent 4e25b26524
commit 74e924c3bb

View File

@ -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();
},