[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 253/323: ANCPLAN : fix bug when removing oper
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 253/323: ANCPLAN : fix bug when removing operation |
Date: |
Wed, 14 Mar 2018 17:39:00 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 5a1ac80796efd514427191119b21f2a324531490
Author: Dany De Bontridder <address@hidden>
Date: Sat Feb 24 14:42:17 2018 +0100
ANCPLAN : fix bug when removing operation
---
html/js/anc_script.js | 7 +++++--
include/class/anc_operation.class.php | 8 +++++++-
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/html/js/anc_script.js b/html/js/anc_script.js
index 397b91d..50d2557 100644
--- a/html/js/anc_script.js
+++ b/html/js/anc_script.js
@@ -338,9 +338,12 @@ function anc_remove_operation(p_dossier, p_oa_group)
p_oa_group, "gDossier":
p_dossier, "op": "remove_anc"};
var queryString = encodeJSON(obj);
- g(p_oa_group).style.display = 'none';
var e = new Ajax.Request("ajax_misc.php",
- {method: 'get', parameters: queryString});
+ {method: 'get', parameters: queryString,onSuccess:function
req() {
+ $("tr"+p_oa_group).remove();
+ }
+
+ });
} else
{
diff --git a/include/class/anc_operation.class.php
b/include/class/anc_operation.class.php
index 69f0f98..6e1ecef 100644
--- a/include/class/anc_operation.class.php
+++ b/include/class/anc_operation.class.php
@@ -302,7 +302,13 @@ class Anc_Operation
{
$class=($i%2 == 0)?'class="even"':' class="odd"';
$i++;
- $ret.="<tr $class>";
+
+ if ( $oldgroup <> $row['oa_group']) {
+ $oldgroup=$row['oa_group'];
+ }
+ $row_id=sprintf('id="tr%s"',$oldgroup);
+
+ $ret.="<tr $row_id $class>";
$ret.=td($row['str_date']);
$ret.=td(h($row['oa_description']));
$ret.=td(h($row['jr_pj_number']));
- [Noalyss-commit] [noalyss] 228/323: Document_Modele CFGDOC warning if there is no template, (continued)
- [Noalyss-commit] [noalyss] 228/323: Document_Modele CFGDOC warning if there is no template, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 161/323: Esthetic : improve, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 222/323: TextArea : fix move when focus, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 203/323: Esthetic : menu administration, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 247/323: Javascript : improve exception management for fill_box, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 219/323: Improve cal, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 237/323: Database : change SQL function, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 266/323: Upgrade : improve message, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 254/323: Tag : fix bug when adding a new tag, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 246/323: Javascript : improve exception management for fill_box, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 253/323: ANCPLAN : fix bug when removing operation,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 285/323: CSS : esthetic div.box (dashboard) width : 98%, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 178/323: User::check_module improve doc, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 180/323: Symbol zoom, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 259/323: fix box search reconcile, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 231/323: Bug : IDate readonly does not contain the ID, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 306/323: Task #0001563: check date paiement VEN, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 300/323: Cosmetic, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 193/323: SQL : fix create extension for account_repository, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 248/323: Install improve message, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 202/323: Improve : New DEFINE NOALYSS_URL, Dany De Bontridder, 2018/03/14