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
97568cc0
Commit
97568cc0
authored
Feb 13, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor comments
parent
e80ac56e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
Dockerfile
setup/dockers/comex2_mysql_server/Dockerfile
+4
-0
comex_user_shared.js
static/js/comex_user_shared.js
+7
-1
comex_user_shared_auth.js
static/js/comex_user_shared_auth.js
+5
-5
No files found.
setup/dockers/comex2_mysql_server/Dockerfile
View file @
97568cc0
...
@@ -9,3 +9,7 @@ ADD config-file.cnf /etc/mysql/conf.d/
...
@@ -9,3 +9,7 @@ ADD config-file.cnf /etc/mysql/conf.d/
# init script for our db comex_shared
# init script for our db comex_shared
# (mysql container will run it iff data volume is empty)
# (mysql container will run it iff data volume is empty)
ADD
init_comex_shared.sql /docker-entrypoint-initdb.d/
ADD
init_comex_shared.sql /docker-entrypoint-initdb.d/
# if Adding data
# 1) a pre-existing database can be added via the volume in /data/shared_mysql_data
# 2) any pre-existing table-formed data can be imported if added inside into /var/lib/mysql-files
static/js/comex_user_shared.js
View file @
97568cc0
...
@@ -130,7 +130,7 @@ var cmxClt = (function() {
...
@@ -130,7 +130,7 @@ var cmxClt = (function() {
// cf. stackoverflow.com/questions/22119673
// cf. stackoverflow.com/questions/22119673
cC
.
findAncestor
=
function
(
elt
,
cls
)
{
cC
.
findAncestor
=
function
(
elt
,
cls
)
{
// console.log("findAncestor starting from", elt.id)
// console.log("findAncestor starting from", elt.id)
while
((
elt
=
elt
.
parentElement
)
&&
!
elt
.
classList
.
contains
(
cls
));
while
((
elt
=
elt
.
parentElement
)
&&
!
elt
.
classList
.
contains
(
cls
)
&&
elt
);
// console.log("findAncestor returning", elt)
// console.log("findAncestor returning", elt)
return
elt
return
elt
}
}
...
@@ -301,6 +301,12 @@ var cmxClt = (function() {
...
@@ -301,6 +301,12 @@ var cmxClt = (function() {
// initialize
// initialize
// -----------
// -----------
// @params:
// - mainMessageId
// - timestampId
// - submitBtnId
// - multiTextinputs: [(...multiTextinputsParams...)]
cC
.
uform
.
Form
=
function
(
aFormId
,
aValidationFun
,
fParams
)
{
cC
.
uform
.
Form
=
function
(
aFormId
,
aValidationFun
,
fParams
)
{
// new "obj"
// new "obj"
...
...
static/js/comex_user_shared_auth.js
View file @
97568cc0
...
@@ -54,8 +54,10 @@ cmxClt = (function(cC) {
...
@@ -54,8 +54,10 @@ cmxClt = (function(cC) {
// - captchaId optional
// - captchaId optional
// - capcheckId optional
// - capcheckId optional
// - all other params are passed to super()
// - all other params are passed to super()
// (optional main_message, mtis, etc)
// (optional: - mainMessageId
// optional: - timestampId
// optional: - submitBtnId
// optional: - multiTextinputs)
cC
.
uauth
.
AuthForm
=
function
(
aFormId
,
aValidationFun
,
afParams
)
{
cC
.
uauth
.
AuthForm
=
function
(
aFormId
,
aValidationFun
,
afParams
)
{
if
(
!
afParams
)
afParams
=
{}
if
(
!
afParams
)
afParams
=
{}
...
@@ -411,9 +413,7 @@ cmxClt = (function(cC) {
...
@@ -411,9 +413,7 @@ cmxClt = (function(cC) {
// test params and set defaults
// test params and set defaults
if
(
typeof
apiAction
!=
'string'
if
(
typeof
apiAction
!=
'string'
||
(
!
/user|register|userExists/
.
test
(
apiAction
)))
{
||
(
!
/user|register|userExists/
.
test
(
apiAction
)))
{
// currently forces login action unless we got an accepted action
console
.
error
(
'callDoors error: Unknown doors-api action'
)
apiAction
=
'user'
// console.warn('DBG: forcing user route')
}
}
if
(
typeof
callback
!=
'function'
)
{
if
(
typeof
callback
!=
'function'
)
{
...
...
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