Commit 97568cc0 authored by Romain Loth's avatar Romain Loth

minor comments

parent e80ac56e
...@@ -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
...@@ -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"
......
...@@ -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') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment