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
63d4af57
Commit
63d4af57
authored
Feb 13, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent explorermap generation with entire DB, show info via generic modal instead
parent
9dcad99c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
comex_lib_elts.js
static/js/comex_lib_elts.js
+5
-2
whoswho.js
static/js/whoswho.js
+14
-1
No files found.
static/js/comex_lib_elts.js
View file @
63d4af57
...
...
@@ -283,7 +283,7 @@ var cmxClt = (function(cC) {
// in a new div
var
myDiv
=
document
.
createElement
(
'div'
)
myDiv
.
innerHTML
=
`
<div class="modal fade self-made" id="
${
boxId
}
" role="dialog" aria-labelledby="
authT
itle" aria-hidden="true" style="display:none">
<div class="modal fade self-made" id="
${
boxId
}
" role="dialog" aria-labelledby="
${
boxId
}
-t
itle" aria-hidden="true" style="display:none">
<div class="modal-dialog" role="document">
<div class="modal-content">
<form id="auth_box" enctype="multipart/form-data">
...
...
@@ -291,7 +291,10 @@ var cmxClt = (function(cC) {
<button type="button" class="close" onclick="cmxClt.elts.box.toggleBox('
${
boxId
}
')" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h5 class="modal-title" id="authTitle">
${
boxTitle
}
</h5>
<h5 class="modal-title" id="
${
boxId
}
-title">
<span class="glyphicon glyphicon-comment glyphicon-float-left"></span>
${
boxTitle
}
</h5>
</div>
<div class="modal-body mini-hero">
${
boxContent
}
...
...
static/js/whoswho.js
View file @
63d4af57
...
...
@@ -259,7 +259,20 @@ $(document).ready(function() {
// console.log("initiating graphexplorer")
return
collectFilters
(
function
(
query
)
{
// debug
// console.log("collected filters: " + query);
// console.log("collected filters: " + query);
// empty query => no map + warning
if
(
query
==
""
||
decodeURI
(
query
)
==
"{}"
)
{
if
(
document
.
getElementById
(
'refine-warning'
))
{
cmxClt
.
elts
.
box
.
toggleBox
(
"refine-warning"
)
}
else
{
cmxClt
.
elts
.
box
.
addGenericBox
(
'refine-warning'
,
"No filters were selected"
,
"Please fill at least a filter before generating a MAP <br/>(mapping without filters takes a long time and overloads servers)"
)
cmxClt
.
elts
.
box
.
toggleBox
(
"refine-warning"
)
}
return
null
}
return
window
.
open
(
'/explorerjs.html?type="filter"&nodeidparam="'
+
escape
(
query
)
+
'"'
);
//return loadGraph("getgraph.php?query=" + query);
});
...
...
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