[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/02: Task #10 - Evenement liaison depuis
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/02: Task #10 - Evenement liaison depuis le texte -10 : permet de lier à une autre tâche grâce à #numéro d'événement |
Date: |
Sat, 13 Feb 2016 10:44:26 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 060738ca454e5fc8af854236121423a6f943e6ad
Author: Dany De Bontridder <address@hidden>
Date: Sat Feb 13 02:59:06 2016 +0100
Task #10 - Evenement liaison depuis le texte
-10 : permet de lier à une autre tâche grâce à #numéro d'événement
---
include/template/detail-action.php | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/include/template/detail-action.php
b/include/template/detail-action.php
index 13e9675..69d2cc0 100644
--- a/include/template/detail-action.php
+++ b/include/template/detail-action.php
@@ -241,26 +241,30 @@ for( $c=0;$c<count($acomment);$c++){
if ($c == 0) { $m_desc=_('Description');}
else
{ $m_desc=_('Commentaire');}
-
+ $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>';
- echo h($m_desc.'
'.$acomment[$c]['agc_id'].'('.$acomment[$c]['tech_user']."
".$acomment[$c]['str_agc_date'].')').$js.
+ $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
{
- echo h($m_desc.'
'.$acomment[$c]['agc_id'].'('.$acomment[$c]['tech_user']."
".$acomment[$c]['str_agc_date'].')').
+ $comment=h($m_desc.'
'.$acomment[$c]['agc_id'].'('.$acomment[$c]['tech_user']."
".$acomment[$c]['str_agc_date'].')').
'<pre class="field_follow_up"
id="com'.$acomment[$c]['agc_id'].'"> '.
" ".h($acomment[$c]['agc_comment']).'</pre>'
;
+
}
+ $comment=preg_replace('/#([0-9]+)/','<a class="line"
href="javascript:void()" onclick="view_action(\1,'.Dossier::id().',0)"
>\1</a>',$comment);
+ echo $comment;
}
echo '<span class="noprint">';
echo $desc->input();