[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 18/219: remove href=javascript:void(0) + Html
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 18/219: remove href=javascript:void(0) + HtmlInput::generate_id replaced by uniqid |
Date: |
Mon, 18 Dec 2017 13:22:28 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 09336b256a47de10ce1612872465fbac1de73043
Author: Dany De Bontridder <address@hidden>
Date: Sun Jul 23 13:16:58 2017 +0200
remove href=javascript:void(0) + HtmlInput::generate_id replaced by uniqid
---
include/lib/html_input.class.php | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/include/lib/html_input.class.php b/include/lib/html_input.class.php
index 3aaf145..bb794ad 100755
--- a/include/lib/html_input.class.php
+++ b/include/lib/html_input.class.php
@@ -503,14 +503,14 @@ class HtmlInput
address@hidden $p_class CSS class of the button
address@hidden $p_symbole raw symbole to add to the action message
*/
- static function
button_action($action,$javascript,$id="xx",$p_class="button",$p_symbole="")
+ static function
button_action($action,$javascript,$id=NULL,$p_class="button",$p_symbole="")
{
- if ($id=="xx"){
- $id=HtmlInput::generate_id("xx");
+ if ($id==NULL){
+ $id=uniqid("xx");
}
- $r="";
- $r.='<input type="button" id="'.$id.'" class="'.$p_class.'"
onclick="'.$javascript.'" value="'.$p_symbole.h($action).'">';
- return $r;
+ $r="";
+ $r.='<input type="button" id="'.$id.'" class="'.$p_class.'"
onclick="'.$javascript.'" value="'.$p_symbole.h($action).'">';
+ return $r;
}
/**
@@ -521,7 +521,7 @@ class HtmlInput
*/
static function image_click($p_image,$p_js,$p_message)
{
- $ret=sprintf('<a class="nav" style="display:inline"
href="javascript:void(0)" title="%s"><img src="image/%s" onclick="%s"></a>',
+ $ret=sprintf('<a class="nav" style="display:inline" title="%s"><img
src="image/%s" onclick="%s"></a>',
$p_message,$p_image,$p_js);
return $ret;
- [Noalyss-commit] [noalyss] 212/219: Esthetic : show ledger : width of the box, (continued)
- [Noalyss-commit] [noalyss] 212/219: Esthetic : show ledger : width of the box, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 179/219: Fix ID problem, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 167/219: Space, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 138/219: Javascript : small error, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 100/219: CSS input field with focus 0001302: FICHES: mise en évidence champs NOM/POSTE/CODE, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 26/219: task #1438 Remplacement de HtmlInput par Http_Input, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 91/219: Esthetic : change button appearance, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 122/219: Anc ODS : check date is valid and comment not empty, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 199/219: Task #001381 : ergonomy after selecting a filter remove the box, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 187/219: fix bug with filter_card : encodeURI not needed, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 18/219: remove href=javascript:void(0) + HtmlInput::generate_id replaced by uniqid,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 90/219: Task #0001481: Encodage Vente, Achat, Fin ou OD 1. S'il n'y a qu'une seule catégorie de fiche , il n'est plus nécessaire d'afficher le choix (puisqu'il n'y en a qu'un) 2. Avoir pour chaque ligne un bouton ajout fiche, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 62/219: Analytic : change the name and description in Ajax, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 54/219: NEW : ICard , you can hide or show the accounting in the search box with the functions ICard->hide_accounting and ICard->show_accounting, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 67/219: Icon : for Inplace Edit field, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 166/219: Space, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 19/219: Replace global $http by new httpInput() to make the test of scenario working, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 128/219: Esthetic, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 99/219: CSS : button border, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 108/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] 174/219: space, Dany De Bontridder, 2017/12/18