noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 92/323: Icon_Action : add the icon trashbin


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 92/323: Icon_Action : add the icon trashbin
Date: Wed, 14 Mar 2018 17:38:29 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 854adbcfe28034885e112e3992415b1ceeceaef7
Author: Dany De Bontridder <address@hidden>
Date:   Thu Jan 25 23:43:42 2018 +0100

    Icon_Action : add the icon trashbin
---
 include/lib/icon_action.class.php | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/include/lib/icon_action.class.php 
b/include/lib/icon_action.class.php
index 59e8d82..9a9bf50 100644
--- a/include/lib/icon_action.class.php
+++ b/include/lib/icon_action.class.php
@@ -184,5 +184,15 @@ class Icon_Action
         $r.='<span id="hide" class="icon"   
onclick="'.$javascript.'">'.$action.'</span>';
         return $r;
     }
-
+    /**
+     * Display the icon of a trashbin
+     * @param string $p_id DOMid 
+     * @param string $p_javascript
+     * @return htmlString
+     */
+    static function trash($p_id,$p_javascript) 
+    {
+        $r='<span id="'.$p_id.'" onclick="'.$p_javascript.'" 
class="icon">&#xe80f;;</span>';
+        return $r;
+    }
 }



reply via email to

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