Skip to content

Commit

Permalink
Evarisk#3432 [Form] fix: js on evaluator & risksign forms
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo David committed Oct 20, 2023
1 parent d32c790 commit 83a89e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/digiriskdolibarr.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/modules/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ window.digiriskdolibarr.form.init = function() {
* @return {void}
*/
window.digiriskdolibarr.form.event = function() {
$( document ).on( 'submit', '#searchFormListRisks, #searchFormInheritedListRisks, #searchFormSharedListRisks', window.digiriskdolibarr.form.searchForm );
};
$( document ).on( 'submit', '#searchFormListRisks, #searchFormInheritedListRisks, #searchFormSharedListRisks, #searchFormListRiskSigns, #searchFormEvaluator', window.digiriskdolibarr.form.searchForm );
};

/**
* Enlève les valeurs d'input vides d'un formulaire.
Expand Down
2 changes: 1 addition & 1 deletion view/digiriskelement/digiriskelement_evaluator.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
}

print '<div class="fichecenter evaluatorlist wpeo-wrap">';
print '<form method="POST" id="searchFormList" action="' . $_SERVER["PHP_SELF"] . (empty($fromid) ? '?id=' . $object->id : '?fromid=' . $fromid) . '" name="evaluator_form"">' . "\n";
print '<form method="POST" id="searchFormEvaluator" action="' . $_SERVER["PHP_SELF"] . (empty($fromid) ? '?id=' . $object->id : '?fromid=' . $fromid) . '" name="evaluator_form"">' . "\n";
print '<input type="hidden" name="token" value="' . newToken() . '">';
print '<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
print '<input type="hidden" name="action" value="list">';
Expand Down

0 comments on commit 83a89e0

Please sign in to comment.