noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 19/30: HtmlInput :: anchor_empty add a title


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 19/30: HtmlInput :: anchor_empty add a title
Date: Tue, 02 Jun 2015 22:29:11 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 31c05121f85ba92113c323c08fc7f4b773ecc9f8
Author: Dany De Bontridder <address@hidden>
Date:   Tue Jun 2 00:19:17 2015 +0200

    HtmlInput :: anchor_empty add a title
---
 include/class_html_input.php |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/class_html_input.php b/include/class_html_input.php
index fc820f6..c45f382 100755
--- a/include/class_html_input.php
+++ b/include/class_html_input.php
@@ -729,16 +729,17 @@ class HtmlInput
          * onclick = function() {...}
          * @param type $p_text Text to display
          * @param type $p_id id of the link
+         * @param type $type title of the link
          * @code
          * echo HtmlInput::anchor_empty('go','go_id');
          * <script>$("go_id").onclick=function (e) { ...}</script>
          * @endcode
          */
-        static  function anchor_empty($p_text,$p_id)
+        static  function anchor_empty($p_text,$p_id,$p_title="")
         {
             $p_url="javascript:void(0)";
-            $str=sprintf('<a id="%s" href="javascript:void(0)" 
class="line">%s</a>',
-            $p_id,$p_text);
+            $str=sprintf('<a id="%s" href="javascript:void(0)" class="line" 
title="%s">%s</a>',
+            $p_id,$p_title,$p_text);
             return $str;
         }
         /**



reply via email to

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