[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 24/219: Code improve : Replace HtmlInput::gen
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 24/219: Code improve : Replace HtmlInput::generate_id obsolete , fix bug in the filter for detail history |
Date: |
Mon, 18 Dec 2017 13:22:29 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 711b3b8f1dfc366fc749c426000278d87e5c05aa
Author: Dany De Bontridder <address@hidden>
Date: Fri Jul 28 11:51:32 2017 +0200
Code improve : Replace HtmlInput::generate_id obsolete , fix bug in the
filter for detail history
---
include/class/acc_account_ledger.class.php | 2 +-
include/class/fiche.class.php | 2 +-
include/lib/html_input.class.php | 2 +-
include/template/detail-action.php | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/class/acc_account_ledger.class.php
b/include/class/acc_account_ledger.class.php
index 4dedf61..0ccb3de 100644
--- a/include/class/acc_account_ledger.class.php
+++ b/include/class/acc_account_ledger.class.php
@@ -700,7 +700,7 @@ class Acc_Account_Ledger
* @return html string
*/
function filter_history($p_table_id) {
- return _('Filtre rapide').' '.HtmlInput::filter_table($p_table_id,
'0,1,2,3,5,6,7', 1);
+ return _('Filtre rapide').' '.HtmlInput::filter_table($p_table_id,
'0,1,2,3,4,5,6,7', 1);
}
static function test_me()
{
diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php
index e18e4e5..4fe2b10 100644
--- a/include/class/fiche.class.php
+++ b/include/class/fiche.class.php
@@ -2043,7 +2043,7 @@ class Fiche
*/
function filter_history($p_table_id) {
- return _('Cherche').' '.HtmlInput::filter_table($p_table_id,
'0,1,2,3,5,6,7', 1);
+ return _('Cherche').' '.HtmlInput::filter_table($p_table_id,
'0,1,2,3,4,5,6,7', 1);
}
}
diff --git a/include/lib/html_input.class.php b/include/lib/html_input.class.php
index bb794ad..0a3e510 100755
--- a/include/lib/html_input.class.php
+++ b/include/lib/html_input.class.php
@@ -536,7 +536,7 @@ class HtmlInput
static function
button_image($javascript,$id="xx",$p_class='class="button"',$p_image="")
{
if ($id=="xx"){
- $id=HtmlInput::generate_id("xx");
+ $id=uniqid("xx");
}
$r="";
$r.='<image id="'.$id.'" '.$p_class.' onclick="'.$javascript.'"
src="'.$p_image.'" />';
diff --git a/include/template/detail-action.php
b/include/template/detail-action.php
index 496e6f0..bd31a80 100644
--- a/include/template/detail-action.php
+++ b/include/template/detail-action.php
@@ -1,7 +1,7 @@
<?php
//This file is part of NOALYSS and is under GPL
//see licence.txt
-$uniq=HtmlInput::generate_id("tab");
+$uniq=uniqid("tab",TRUE);
?><div>
<div style="float:left;">
- [Noalyss-commit] [noalyss] 161/219: Noalyss_SQL :: count add a space, (continued)
- [Noalyss-commit] [noalyss] 161/219: Noalyss_SQL :: count add a space, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 107/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] 164/219: Code cleaning : remove obsolete, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 83/219: NUM_FIELD = 40, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 129/219: Anc ODS : esthetic search analytic accounting, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 188/219: Plan Comptable : max longueur du poste = 40, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 69/219: HttpInput : do not use in_array but array_key_exists,, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 217/219: Acc_Account : add function , improve function verify, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 49/219: improve esthetic, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 136/219: Infobulle : avoid that the info balloon exceed limit of the display, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 24/219: Code improve : Replace HtmlInput::generate_id obsolete , fix bug in the filter for detail history,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 171/219: remove useless, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 61/219: Inplace_Edit : improve button + test, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 124/219: indentation, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 21/219: Improve debugging and improve manage_table_sql element will be added at the right place Manage_Table_SQL can work also with a SQL query or a view Icon place can be modified, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 34/219: rename scenario files, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 31/219: Task #0001443: opérations rapprochées : bug quand on utilise des tva avec autoliquidation Documentation, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 63/219: Analytic : change the name and description in Ajax, improve esthetic, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 116/219: Task #0001297: Perfectionnement menu COMPTA/ADV/OPEN, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 56/219: Task #1469 : Les esperluettes ne passent pas dans les libellés pour «opération identique»., Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 189/219: Task #1506 Fiche : max longueur du poste comptable = 40, Dany De Bontridder, 2017/12/18