noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 184/219: Icon move / fix Correct button_ancho


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 184/219: Icon move / fix Correct button_anchor to avoid the message "javascript:void(0)"
Date: Mon, 18 Dec 2017 13:23:00 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 5da7f4ed00dde1236acab80c54a4bc1321ced32d
Author: Dany De Bontridder <address@hidden>
Date:   Thu Dec 7 08:20:14 2017 +0100

    Icon move / fix
    Correct button_anchor to avoid the message "javascript:void(0)"
---
 include/lib/html_input.class.php | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/include/lib/html_input.class.php b/include/lib/html_input.class.php
index 398f8cb..a153306 100755
--- a/include/lib/html_input.class.php
+++ b/include/lib/html_input.class.php
@@ -226,9 +226,11 @@ class HtmlInput
      */
     static function 
button_anchor($p_label,$p_value,$p_name="",$p_javascript="",$p_class="button")
     {
-        $r=sprintf('<span id="%s" > <A class="'.$p_class.'" 
style="display:inline;"  href="%s" %s >%s</A></span>',
+        $href="";
+        if ( $p_value != "") $href=sprintf ('  href ="%s"  ',$p_value);
+        $r=sprintf('<span id="%s" > <A class="'.$p_class.'" 
style="display:inline;"  %s %s >%s</A></span>',
                    $p_name,
-                   $p_value,
+                   $href,
                    $p_javascript,
                    $p_label);
         return $r;
@@ -826,6 +828,7 @@ class HtmlInput
          * @param type $mod hide , close , zoom , custom or none, with
          * custom , the $name contains all the code
          * @param type $p_js contains the javascript if mod = "custom" or 
"zoom" contains button + code 
+         * @param type $p_draggable , if set to yes the box will be draggable
          * @return type
          */
        static function 
title_box($p_name,$p_div,$p_mod="close",$p_js="",$p_draggable="y")
@@ -854,7 +857,7 @@ class HtmlInput
                 die (__FILE__.":".__LINE__._('Paramètre invaide'));
             
             if ( $p_draggable=="y") {
-                $drag=sprintf('<span id="pin_%s" 
style="float:right;margin:0px;padding:0px;font-size:120%%;border-width:0px" ><a 
class="input_text" onclick="pin(\'%s\')" id="close_div"> &#10057; </a></span>',
+                $drag=sprintf('<span id="pin_%s" 
style="float:right;margin:0px;padding:0px;font-size:120%%;border-width:0px" ><a 
class="input_text" onclick="pin(\'%s\')" id="close_div">&#8778; </a></span>',
                     $p_div,
                     $p_div);
             $r.=$drag;



reply via email to

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