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
2e4037c4
Commit
2e4037c4
authored
Oct 03, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] graphExplorer: checkBox (BUG-8)
parent
cb3e51d9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
extras_explorerjs.js
static/lib/graphExplorer/extras_explorerjs.js
+2
-2
settings_explorerjs.js
static/lib/graphExplorer/settings_explorerjs.js
+1
-0
methods.js
static/lib/graphExplorer/tinawebJS/methods.js
+7
-1
No files found.
static/lib/graphExplorer/extras_explorerjs.js
View file @
2e4037c4
...
@@ -89,10 +89,10 @@ function CRUD( list_id , ngram_ids , http_method , callback) {
...
@@ -89,10 +89,10 @@ function CRUD( list_id , ngram_ids , http_method , callback) {
// general listener: shift key in the window <=> add to selection
// general listener: shift key in the window <=> add to selection
$
(
document
).
on
(
'keyup keydown'
,
function
(
e
){
$
(
document
).
on
(
'keyup keydown'
,
function
(
e
){
// changes the global boolean ("add node to selection" status) if keydown and SHIFT
// changes the global boolean ("add node to selection" status) if keydown and SHIFT
checkBox
=
e
.
shiftKey
checkBox
=
manuallyChecked
||
e
.
shiftKey
// show it in the real checkbox too
// show it in the real checkbox too
$
(
'#checkboxdiv'
).
prop
(
"checked"
,
e
.
shiftKey
)
$
(
'#checkboxdiv'
).
prop
(
"checked"
,
manuallyChecked
||
e
.
shiftKey
)
}
);
}
);
// = = = = = = = = = = = [ Clusters Plugin ] = = = = = = = = = = = //
// = = = = = = = = = = = [ Clusters Plugin ] = = = = = = = = = = = //
...
...
static/lib/graphExplorer/settings_explorerjs.js
View file @
2e4037c4
...
@@ -169,6 +169,7 @@ var gexf;
...
@@ -169,6 +169,7 @@ var gexf;
//var zoom=0;
//var zoom=0;
var
checkBox
=
false
;
var
checkBox
=
false
;
var
manuallyChecked
=
false
;
var
overNodes
=
false
;
var
overNodes
=
false
;
var
shift_key
=
false
;
var
shift_key
=
false
;
...
...
static/lib/graphExplorer/tinawebJS/methods.js
View file @
2e4037c4
...
@@ -79,7 +79,13 @@ function highlightSelectedNodes(flag){
...
@@ -79,7 +79,13 @@ function highlightSelectedNodes(flag){
function
alertCheckBox
(
eventCheck
){
function
alertCheckBox
(
eventCheck
){
// console.log('FUN t.methods:alertCheckBox')
// console.log('FUN t.methods:alertCheckBox')
if
(
!
isUndef
(
eventCheck
.
checked
))
checkBox
=
eventCheck
.
checked
;
// NB: we use 2 booleans to adapt to SHIFT checking
// - var checkBox ---------> has the real box state
// - var manuallyChecked --> remembers if it was changed here
if
(
!
isUndef
(
eventCheck
.
checked
))
{
checkBox
=
eventCheck
.
checked
;
manuallyChecked
=
eventCheck
.
checked
}
}
}
// States:
// States:
...
...
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