noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 310/323: Cosmetic : use Icon_Action::trash


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 310/323: Cosmetic : use Icon_Action::trash
Date: Wed, 14 Mar 2018 17:39:11 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit f0bb5efa8b3cb9d65d09bcfba7a47c21603de751
Author: Dany De Bontridder <address@hidden>
Date:   Sat Mar 10 21:04:59 2018 +0100

    Cosmetic : use Icon_Action::trash
---
 include/template/detail-action.php | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/include/template/detail-action.php 
b/include/template/detail-action.php
index 52df9cf..0ecc3bd 100644
--- a/include/template/detail-action.php
+++ b/include/template/detail-action.php
@@ -246,15 +246,15 @@ for( $c=0;$c<count($acomment);$c++){
          $comment="";
          if ( $p_view != 'READ' && $c > 0)
        {
-               $rmComment=sprintf("return confirm_box(null,'"._('Voulez-vous 
effacer ce commentaire')." ?',function() {remove_comment('%s','%s');});",
-                                               dossier::id(),
-                                               $acomment[$c]['agc_id']);
-                               $js= '<a class="tinybutton" 
id="accom'.$acomment[$c]['agc_id'].'" href="javascript:void(0)" 
onclick="'.$rmComment.'">'.SMALLX.'</a>';
-               $comment= h($m_desc.' 
'.$acomment[$c]['agc_id'].'('.$acomment[$c]['tech_user']." 
".$acomment[$c]['str_agc_date'].')').$js.
-                               '<pre class="field_follow_up" 
id="com'.$acomment[$c]['agc_id'].'"> '.
-                               " ".h($acomment[$c]['agc_comment']).'</pre>'
-                               ;
-                
+            $rmComment=sprintf("return confirm_box(null,'"._('Voulez-vous 
effacer ce commentaire')." ?',function() {remove_comment('%s','%s');});",
+                                            dossier::id(),
+                                            $acomment[$c]['agc_id']);
+            $js=Icon_Action::trash("accom".$acomment[$c]['agc_id'], 
$rmComment);
+            $comment= h($m_desc.' 
'.$acomment[$c]['agc_id'].'('.$acomment[$c]['tech_user']." 
".$acomment[$c]['str_agc_date'].')').$js.
+                            '<pre class="field_follow_up" 
id="com'.$acomment[$c]['agc_id'].'"> '.
+                            " ".h($acomment[$c]['agc_comment']).'</pre>'
+                            ;
+
        }
        else
        {



reply via email to

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