noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 13/14: Follow-Up : bug ne peut pas ajouter fi


From: dwm
Subject: [Noalyss-commit] [noalyss] 13/14: Follow-Up : bug ne peut pas ajouter fichier sur nouvel événement
Date: Sun, 4 Feb 2024 05:51:24 -0500 (EST)

sparkyx pushed a commit to branch devel
in repository noalyss.

commit 412a28629f08567380fa872a19cefc801b0b75a9
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">&#xe80f;</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">&#xe80f;</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;?>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]