Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
1a7fd814
Commit
1a7fd814
authored
Apr 12, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SHIFT key activates checkBox
cf. github.com/ISCPIF/gargantext/commit/2e4037c
parent
01491368
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
settings_explorerjs.js
settings_explorerjs.js
+1
-0
Tinaweb.js
tinawebJS/Tinaweb.js
+9
-0
methods.js
tinawebJS/methods.js
+7
-1
No files found.
settings_explorerjs.js
View file @
1a7fd814
...
...
@@ -166,6 +166,7 @@ var gexf;
//var zoom=0;
var
checkBox
=
false
;
var
manuallyChecked
=
false
;
var
overNodes
=
false
;
var
shift_key
=
false
;
...
...
tinawebJS/Tinaweb.js
View file @
1a7fd814
...
...
@@ -883,6 +883,15 @@ TinaWebJS = function ( sigmacanvas ) {
}
});
// general listener: shift key in the window <=> add to selection
$
(
document
).
on
(
'keyup keydown'
,
function
(
e
){
// changes the global boolean ("add node to selection" status) if keydown and SHIFT
checkBox
=
manuallyChecked
||
e
.
shiftKey
// show it in the real checkbox too
$
(
'#checkboxdiv'
).
prop
(
"checked"
,
manuallyChecked
||
e
.
shiftKey
)
}
);
// costly entire refresh (~400ms) only after stopped resizing for 3s
// NB: rescale middleware already reacted and, except for large win size changes, it handles the resize fine
// (so this fragment is only to accomodate the large changes)
...
...
tinawebJS/methods.js
View file @
1a7fd814
...
...
@@ -92,7 +92,13 @@ function highlightSelectedNodes(flag){
}
function
alertCheckBox
(
eventCheck
){
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:
...
...
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