[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 16/38: Follow-Up : bug ne peut pas ajouter fi
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 16/38: Follow-Up : bug ne peut pas ajouter fichier sur nouvel événement |
Date: |
Sun, 18 Feb 2024 07:30:43 -0500 (EST) |
sparkyx pushed a commit to branch devel
in repository noalyss.
commit e2cc2f37e70f17cc2a7fa7ee58ef4a9c1015c8a5
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Feb 4 11:31:22 2024 +0100
Follow-Up : bug ne peut pas ajouter fichier sur nouvel événement
---
include/template/follow_up-display.php | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/include/template/follow_up-display.php
b/include/template/follow_up-display.php
index 903d39dfa..f54f66509 100644
--- a/include/template/follow_up-display.php
+++ b/include/template/follow_up-display.php
@@ -523,6 +523,22 @@ if ( $this->ag_id > 0 &&
Document_Option::is_enable_operation_detail($this->dt_i
<span >
<input type="button" class="smallbutton" onclick="addFiles();" value="<?php
echo _("Ajouter un fichier")?>">
</span>
+<script language="javascript">
+function addFiles() {
+try {
+ docAdded=document.getElementById('add_file');
+ new_element=document.createElement('li');
+ new_element.innerHTML='<input class="inp" type="file" value=""
multiple name="file_upload[]"/>';
+
+ new_element.innerHTML+='<span id="<?=uniqid("file")?>"
onclick="document.getElementById(\'add_file\').removeChild(this.parentNode)"
class="icon"></span>';
+
+
+
+ docAdded.appendChild(new_element);
+}
+catch(exception) { alert('<?php echo j(_('Je ne peux pas ajouter de
fichier'))?>'); alert(exception.message);}
+}
+</script>
</div>
<?php endif;?>
@@ -630,22 +646,6 @@ endfor;
endif;?>
</div>
- <script language="javascript">
-function addFiles() {
-try {
- docAdded=document.getElementById('add_file');
- new_element=document.createElement('li');
- new_element.innerHTML='<input class="inp" type="file" value=""
multiple name="file_upload[]"/>';
-
- new_element.innerHTML+='<span id="<?=uniqid("file")?>"
onclick="document.getElementById(\'add_file\').removeChild(this.parentNode)"
class="icon"></span>';
-
-
-
- docAdded.appendChild(new_element);
-}
-catch(exception) { alert('<?php echo j(_('Je ne peux pas ajouter de
fichier'))?>'); alert(exception.message);}
-}
-</script>
</div>
<?php endif;?>
- [Noalyss-commit] [noalyss] 23/38: Merge branch 'devel', (continued)
- [Noalyss-commit] [noalyss] 23/38: Merge branch 'devel', dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 13/38: FOLLOWUP : Cosmetic nombre pièces, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 22/38: Fix : auto numbering receipt, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 32/38: cosmetic, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 36/38: Fix : Bug cannot filter a list of element, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 27/38: Nouvelle fonction pour ajouter des attributs à un élément DOM, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 31/38: DB protect against JS Injection, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 24/38: Nouveau #00022980002298: detail fiche , historique du suivi, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 35/38: Merge devel, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 09/38: Task #2321: Sécurité : empêcher changement de numéro de pièce, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 16/38: Follow-Up : bug ne peut pas ajouter fichier sur nouvel événement,
dwm <=
- [Noalyss-commit] [noalyss] 18/38: Fix cosmetic bug : duplicate operation with autoreverse VAT has an VAT amount, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 20/38: Fix : auto numbering receipt, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 21/38: Merge branch 'devel', dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 25/38: cosmetic, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 37/38: Cosmetic, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 38/38: Upgrade SQL, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 28/38: DB protect against JS Injection, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 07/38: SUIVI : ajout prénom, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 14/38: integre changement SQL, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 30/38: redirect via javascript, dwm, 2024/02/18