diff options
| author | Debulois <quentin@debulois.fr> | 2022-05-07 12:23:11 +0200 |
|---|---|---|
| committer | Debulois <quentin@debulois.fr> | 2022-05-07 12:23:11 +0200 |
| commit | 588c4ceb78fae443ca8f9446d256f5474a3bf66a (patch) | |
| tree | 224c5e5aa643012ac030af4410e935fffcefbe8f /Template/Include/incl_form_userInfo.php | |
| parent | 0048d676a2bed3addadea670fa5d802a314af473 (diff) | |
Ré-écriture du JS pour le rendre CSP compliant
Diffstat (limited to 'Template/Include/incl_form_userInfo.php')
| -rw-r--r-- | Template/Include/incl_form_userInfo.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Template/Include/incl_form_userInfo.php b/Template/Include/incl_form_userInfo.php index 1fd78d5..c5091c5 100644 --- a/Template/Include/incl_form_userInfo.php +++ b/Template/Include/incl_form_userInfo.php @@ -86,7 +86,7 @@ if ($_SESSION["userStatus"] == 1) { echo(' <option value="'.$allJobs[$i]["jobCategoryId"].'">'.$allJobs[$i]["jobCategoryName".ucwords($_SESSION["lang"])].'</option>'.PHP_EOL); } echo(' </select> - <button type="button" onclick="add()">'.$text[basename(__FILE__, ".php")]["jobsAdd"].'</button> + <button type="button" id="addButton">'.$text[basename(__FILE__, ".php")]["jobsAdd"].'</button> </div> </label>'.PHP_EOL); @@ -121,10 +121,9 @@ if ($_SESSION["userStatus"] == 1) { </label>'.PHP_EOL); // **************************************************************************** - // CHARGEMENT ET DECLENCHEMENT DU JAVASCRIPT DEDIE A CETTE PAGE + // CHARGEMENT DU JAVASCRIPT DEDIE A CETTE PAGE UNIQUEMENT SI PRO // **************************************************************************** - echo(' <script src="/Static/Js/userinfo.js"></script> - <script>init()</script>'); + echo(' <script src="/Static/Js/userinfo.js"></script>'); } // **************************************************************************** |
