[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 283/323: Todo List : fix bug in sort after zo
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 283/323: Todo List : fix bug in sort after zooming |
Date: |
Wed, 14 Mar 2018 17:39:05 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit f91305a5f0ed0f1a56d534094230a8f564f935cc
Author: Dany De Bontridder <address@hidden>
Date: Wed Feb 28 19:08:34 2018 +0100
Todo List : fix bug in sort after zooming
---
html/js/sorttable.js | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/html/js/sorttable.js b/html/js/sorttable.js
index 0a937d6..8f4f83f 100644
--- a/html/js/sorttable.js
+++ b/html/js/sorttable.js
@@ -113,19 +113,22 @@ var sorttable = {
} else {
headrow[i].sorttable_sortfunction =
sorttable.guessType(table, i);
}
- //--------- if already sorted , add a icon ----------------
- if
(headrow[i].className.search(/\bsorttable_sorted_reverse\b/) != -1) {
- // if we're already sorted by this column,
+ //--------- if already sorted , add a icon but only if the
icon is not yet there ----------------
+ if
(headrow[i].className.search(/\bsorttable_sorted_reverse\b/) != -1 &&
headrow[i].innerHTML.search(/\bsorttable_sortrevind\b/)==-1) {
+
sortrevind = document.createElement('span');
sortrevind.id = "sorttable_sortrevind";
sortrevind.innerHTML = '<img src="image/down.gif">';
headrow[i].appendChild(sortrevind);
+
}
- if (headrow[i].className.search(/\bsorttable_sorted\b/) != -1)
{
+ if (headrow[i].className.search(/\bsorttable_sorted\b/) != -1
&& headrow[i].innerHTML.search(/\bsorttable_sortfwdind\b/)==-1) {
+
sortfwdind = document.createElement('span');
sortfwdind.id = "sorttable_sortfwdind";
sortfwdind.innerHTML = '<img src="image/up.gif">';
headrow[i].appendChild(sortfwdind);
+
}
// make it clickable to sort
headrow[i].sorttable_columnindex = i;
- [Noalyss-commit] [noalyss] 259/323: fix box search reconcile, (continued)
- [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
- [Noalyss-commit] [noalyss] 218/323: element go_up : fix height, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 235/323: Set version, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 257/323: Tag : box for adding a tag : add a close button, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 283/323: Todo List : fix bug in sort after zooming,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 287/323: Improve favicon.ico, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 182/323: Task #0001535: TVA : réécriture du module , fichier test pour TVA_RATE_MTABLE, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 185/323: Task #0001535: TVA : réécriture du module , missing file, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 229/323: index.css : CSS responsive, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 310/323: Cosmetic : use Icon_Action::trash, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 206/323: install : check the module XML , SimpleXML, ..., Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 299/323: Bug : action_late show also action for today, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 318/323: Bug fix : History filter : do not filter on the last columns, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 317/323: Dashboard : cannot zoom event from follow-up, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 261/323: remove dead code, Dany De Bontridder, 2018/03/14