Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
29146ec5
Commit
29146ec5
authored
Jun 27, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documents view: fix previous commit ('trashAll' duplicates)
parent
23aaf13e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
Docs_dyna_chart_and_table.js
static/lib/gargantext/Docs_dyna_chart_and_table.js
+10
-6
tables.css
static/lib/gargantext/tables.css
+1
-1
No files found.
static/lib/gargantext/Docs_dyna_chart_and_table.js
View file @
29146ec5
...
...
@@ -228,8 +228,8 @@ function transformContent2(rec_id, trClass) {
function
toggleTrashIt
(
boxElem
)
{
var
id
=
boxElem
.
id
// row_id in the table (not ngram_id)
var
val
=
boxElem
.
checked
console
.
log
(
"striking =>"
,
val
)
console
.
log
(
"record"
,
AjaxRecords
[
id
])
//
console.log("striking =>", val)
//
console.log("record", AjaxRecords[id])
// MyTable.data('dynatable').settings.dataset.originalRecords[id]["del"] = val;
AjaxRecords
[
id
][
"del"
]
=
val
;
...
...
@@ -686,25 +686,29 @@ var dupFlag = false ;
// intercept duplicates query to sort alphabetically **before** duplicates filter
$
(
"#div-table"
).
on
(
"dynatable:queries:added"
,
function
(
e
,
qname
,
qval
)
{
// debug
// console.warn(e)
//console.warn(e)
// console.warn("add", qname)
// console.warn("add", qval)
if
(
!
dupFlag
&&
qname
==
'docFilter'
&&
qval
==
"filter_dupl_all"
)
{
MyTable
.
data
(
'dynatable'
).
queries
.
remove
(
'docFilter'
)
// flag to avoid recursion when we'll call this filter again in 4 lines
dupFlag
=
true
;
// the sorting
MyTable
.
data
(
'dynatable'
).
sorts
.
clear
();
MyTable
.
data
(
'dynatable'
).
sorts
.
add
(
'
docurl
'
,
1
)
MyTable
.
data
(
'dynatable'
).
sorts
.
add
(
'
signature
'
,
1
)
// now we can add the query
MyTable
.
data
(
'dynatable'
).
queries
.
add
(
'docFilter'
,
qval
)
MyTable
.
data
(
'dynatable'
).
process
();
}
else
if
(
qname
==
'docFilter'
)
{
else
if
(
qname
==
'docFilter'
&&
qval
!=
"filter_dupl_all"
)
{
dupFlag
=
false
}
});
$
(
"#div-table"
).
on
(
"dynatable:queries:removed"
,
function
(
e
,
qname
,
qval
)
{
if
(
qname
==
'filter_dupl_all'
)
{
//console.warn(e)
//console.warn("rm", qname)
if
(
qname
==
'docFilter'
)
{
dupFlag
=
false
;
}
});
...
...
static/lib/gargantext/tables.css
View file @
29146ec5
...
...
@@ -51,7 +51,7 @@ th a {
* NB: top/bottom convention only works because of sort rule that always put smallest id first
*/
.duplrowkeep
{
border-top
:
3px
solid
black
/*border-top: 3px solid black*/
}
.duplrowdel
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment