[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 35/219: Task #0001415: Lettrage - masquer la
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 35/219: Task #0001415: Lettrage - masquer la mise en évidence. Click a second time of an reconciliation and the highlight disappear |
Date: |
Mon, 18 Dec 2017 13:22:33 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 40184268fdb409f151e8b693fb368e47ab20da10
Author: Dany De Bontridder <address@hidden>
Date: Sun Sep 3 16:56:03 2017 +0200
Task #0001415: Lettrage - masquer la mise en évidence.
Click a second time of an reconciliation and the highlight
disappear
---
html/js/acc_ledger.js | 24 ++++++++++++++++--------
html/test.php | 6 ++++++
2 files changed, 22 insertions(+), 8 deletions(-)
diff --git a/html/js/acc_ledger.js b/html/js/acc_ledger.js
index 4cbc790..13d8811 100644
--- a/html/js/acc_ledger.js
+++ b/html/js/acc_ledger.js
@@ -1109,11 +1109,12 @@ function get_history_account(ctl, dossier) {
}
}
var previous = [];
+var let_previous="";
function show_reconcile(p_div, p_let)
{
try
{
- if (previous.length != 0)
+ if (previous.length != 0 || p_let == let_previous )
{
var count_elt = previous.length;
var i = 0;
@@ -1125,14 +1126,21 @@ function show_reconcile(p_div, p_let)
}
var name = 'tr_' + p_let + '_' + p_div;
var elt = document.getElementsByName(name);
- previous = elt;
- var count_elt = elt.length;
- var i = 0;
- for (i = 0; i < count_elt; i++) {
- elt[i].style.backgroundColor = '#000066';
- elt[i].style.color = 'white';
- elt[i].style.fontWeight = 'bolder';
+ if ( p_let != let_previous ) {
+
+ previous = elt;
+ var count_elt = elt.length;
+ var i = 0;
+ for (i = 0; i < count_elt; i++) {
+ elt[i].style.backgroundColor = '#000066';
+ elt[i].style.color = 'white';
+ elt[i].style.fontWeight = 'bolder';
+ }
+ let_previous=p_let;
+ }
+ else {
+ let_previous="";
}
} catch (e)
diff --git a/html/test.php b/html/test.php
index e8dacc7..41c0b0b 100644
--- a/html/test.php
+++ b/html/test.php
@@ -36,6 +36,12 @@ require_once ('class/dossier.class.php');
require_once('lib/html_input.class.php');
require_once ('lib/function_javascript.php');
require_once 'class/user.class.php';
+require_once NOALYSS_INCLUDE.'/lib/http_input.class.php';
+
+global $http;
+
+$http=new HttpInput();
+
load_all_script();
$gDossier=HtmlInput::default_value_get('gDossier', -1);
if ($gDossier==-1)
- [Noalyss-commit] [noalyss] 215/219: ICheckBox : add attribute to allow to select checkbox thanks its attribute with the js select_checkbox_attribute, (continued)
- [Noalyss-commit] [noalyss] 215/219: ICheckBox : add attribute to allow to select checkbox thanks its attribute with the js select_checkbox_attribute, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 170/219: Traduction, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 216/219: Task #1378 : select ledger thanks their type, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 201/219: Task #0001507: Click sur détail opérations apparaît trop haut Problem comes from window.onload loaded with detail operation. Move into do.php , recherche.php , popup.php from script.js, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 40/219: Test : utilisation nouvelle police nouveau theme Stock... Correction bug http_input SQL : correction table jnt_letter , col. inutile, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 86/219: Improve appearance, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 150/219: HttpInput: Exception if the type is not known, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 98/219: esthetic change icon, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 141/219: CSS Esthetic : comment span or IText can have the CSSclass label_item, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 117/219: Task #0001297: Perfectionnement menu COMPTA/ADV/OPEN remove dead code, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 35/219: Task #0001415: Lettrage - masquer la mise en évidence. Click a second time of an reconciliation and the highlight disappear,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 153/219: HtmlInput: fix small bug in fct image_click, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 158/219: Fix issue with open_basedir, sometime set in the server config, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 148/219: ANC : esthetic ; remove inline CSS, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 156/219: Task #1489: Procédure d'ouverture d'exercice : libellé ambigu Amélioration esthétique & ergonomie, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 77/219: PRINTJRN : enlève num opération, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 145/219: ANC : Bouton "recherche" sont des loupes, ajout title, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 168/219: Task #1476 : prevent the use of some accounting Code cleaning , remove obsolete files, Dany De Bontridder, 2017/12/18
- [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