[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"> ❉ </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">≊ </a></span>',
$p_div,
$p_div);
$r.=$drag;
- [Noalyss-commit] [noalyss] 68/219: HttpInput : do not use isset but in_array, to avoid problem if the value is null, (continued)
- [Noalyss-commit] [noalyss] 68/219: HttpInput : do not use isset but in_array, to avoid problem if the value is null, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 58/219: Correct : json function, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 60/219: Inplace_Edit : improve button + test, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 132/219: Manage_Table_SQL : add a function to set the order, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 110/219: task #0001271: Rendre possible un copier/coller du résultat de la calculatrice. Add a button to Pin a box, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 03/219: Improve redirect, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 97/219: esthetic style-r692 : size icon, arrow ..., Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 08/219: profil : CFGPRO , correct, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 11/219: Infobulle : esthetic, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 73/219: Esthetic : History , improve place of button, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 184/219: Icon move / fix Correct button_anchor to avoid the message "javascript:void(0)",
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 43/219: Add the icon for modify, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 12/219: Infobulle : warning : esthetic, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 126/219: Esthetic : align text, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 113/219: Améliore esthétique, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 106/219: task #0001272: Rendre possible l'appel de la calculatrice depuis le fin fond d'une page., Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 59/219: ManageTable : Correct bug for the sort, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 76/219: Extourne : correct reverse operation for autoliquidation, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 135/219: Template operation : message if there is no template, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 192/219: Select_box : add a new type of value and fix a problem with the position of the div, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 112/219: Task #0001481: Encodage Vente, Achat, Fin ou OD Task #0001485: possibilité de clouer une fenetre, Dany De Bontridder, 2017/12/18