noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 02/13: HtmlInput::anchor, needs a javascript:


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 02/13: HtmlInput::anchor, needs a javascript:void(0)
Date: Wed, 11 Nov 2020 10:23:40 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit ab54f85fcdd54e675ede9297248bde160eb97f1a
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Nov 8 23:39:33 2020 +0100

    HtmlInput::anchor, needs a javascript:void(0)
---
 include/lib/html_input.class.php | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/lib/html_input.class.php b/include/lib/html_input.class.php
index 0cbbabb..cf3978c 100755
--- a/include/lib/html_input.class.php
+++ b/include/lib/html_input.class.php
@@ -908,18 +908,19 @@ class HtmlInput
      * @param string $p_url  url
      * @param string $p_js javascript
      * @param string $p_style is the visuable effect (class, style...)
+     * @param string $p_title Title
      */
     static function anchor($p_text, $p_url="", $p_js="",
-            $p_style=' class="line" ')
+            $p_style=' class="line" ',$p_title="click")
     {
         if ($p_js!="")
         {
-            $p_url='href="#"';
+            $p_url='href="javascript:void(0)"';
           } else {
               $p_url=sprintf('href="%s"',$p_url);
         }
 
-        $str=sprintf('<a %s %s %s>%s</a>', $p_style, $p_url, $p_js, $p_text);
+        $str=sprintf('<a %s %s %s title="%s">%s</a>', $p_style, $p_url, $p_js, 
$p_title,$p_text);
         return $str;
     }
 



reply via email to

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