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
77dd9f53
Commit
77dd9f53
authored
Jun 06, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fix sourcemode
parent
7b2aa8e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
main.js
tinawebJS/main.js
+4
-6
No files found.
tinawebJS/main.js
View file @
77dd9f53
...
@@ -54,12 +54,13 @@ TW.instance.initSearchListeners();
...
@@ -54,12 +54,13 @@ TW.instance.initSearchListeners();
// show the custom name of the app
// show the custom name of the app
writeBrand
(
TW
.
conf
.
branding
)
writeBrand
(
TW
.
conf
.
branding
)
// choosing the input
// choosing the input
// -------------------
// -------------------
// type of input
var
sourcemode
=
isUndef
(
getUrlParam
.
sourcemode
)
?
TW
.
conf
.
sourcemode
:
getUrlParam
.
sourcemode
// if page is being run locally ==> only possible source shall be via file input
// if page is being run locally ==> only possible source shall be via file input
if
(
window
.
location
.
protocol
==
'file:'
if
(
window
.
location
.
protocol
==
'file:'
||
sourcemode
==
'localfile'
)
{
||
(
!
isUndef
(
getUrlParam
.
sourcemode
)
&&
getUrlParam
.
sourcemode
==
'localfile'
))
{
let
inputDiv
=
document
.
getElementById
(
'localInput'
)
let
inputDiv
=
document
.
getElementById
(
'localInput'
)
inputDiv
.
style
.
display
=
'block'
inputDiv
.
style
.
display
=
'block'
...
@@ -95,9 +96,6 @@ function syncRemoteGraphData () {
...
@@ -95,9 +96,6 @@ function syncRemoteGraphData () {
var
mapLabel
;
// user displayed label for this input dataset
var
mapLabel
;
// user displayed label for this input dataset
// type of input
let
sourcemode
=
isUndef
(
getUrlParam
.
sourcemode
)?
TW
.
sourcemode
:
getUrlParam
.
sourcemode
// case (1) read from remote DB via API bridge fetching
// case (1) read from remote DB via API bridge fetching
// ex: /services/api/graph?q=filters...
// ex: /services/api/graph?q=filters...
if
(
sourcemode
==
"api"
)
{
if
(
sourcemode
==
"api"
)
{
...
...
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