diff options
| author | polo <ordipolo@gmx.fr> | 2025-10-24 02:27:19 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-10-24 02:27:19 +0200 |
| commit | 5311271ae590460b986e3e09edcdc665b73710ca (patch) | |
| tree | f31f6b9602d1607e838a7a4bfe320db9c8d44bb4 /public/js/InputText.js | |
| parent | f9a9bf1ae4fac9317fd71f0bcb207544b000e6f1 (diff) | |
| download | cms-5311271ae590460b986e3e09edcdc665b73710ca.zip | |
entité pour table intermédiaire à 3 champs entre NodeData et Asset, table Asset repensée
Diffstat (limited to 'public/js/InputText.js')
| -rw-r--r-- | public/js/InputText.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/InputText.js b/public/js/InputText.js index 33dcf8d..79f0398 100644 --- a/public/js/InputText.js +++ b/public/js/InputText.js | |||
| @@ -31,7 +31,7 @@ class InputText{ | |||
| 31 | .then(data => { | 31 | .then(data => { |
| 32 | if(data.success){ | 32 | if(data.success){ |
| 33 | this.parent.querySelector('#' + this.name + '_span').innerHTML = new_text; | 33 | this.parent.querySelector('#' + this.name + '_span').innerHTML = new_text; |
| 34 | this.close(this.name); | 34 | this.close(); |
| 35 | } | 35 | } |
| 36 | else{ | 36 | else{ |
| 37 | console.error("Erreur: le serveur n'a pas enregistré le nouveau texte."); | 37 | console.error("Erreur: le serveur n'a pas enregistré le nouveau texte."); |
| @@ -43,6 +43,6 @@ class InputText{ | |||
| 43 | } | 43 | } |
| 44 | cancel(){ | 44 | cancel(){ |
| 45 | this.parent.querySelector('#' + this.name + '_input').value = this.parent.querySelector('#' + this.name + '_span').innerHTML; | 45 | this.parent.querySelector('#' + this.name + '_input').value = this.parent.querySelector('#' + this.name + '_span').innerHTML; |
| 46 | this.close(this.name); | 46 | this.close(); |
| 47 | } | 47 | } |
| 48 | } \ No newline at end of file | 48 | } \ No newline at end of file |
