diff options
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 |
