A few tweaks
This commit is contained in:
@@ -3,4 +3,4 @@
|
|||||||
# debug version
|
# debug version
|
||||||
# mvn package && java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5006 -jar application/target/pairgoth-engine.jar
|
# mvn package && java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5006 -jar application/target/pairgoth-engine.jar
|
||||||
|
|
||||||
mvn -DskipTests=true package && java -Dpairgoth.mode=standalone -jar application/target/pairgoth-engine.jar
|
mvn -DskipTests=true package && java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 -Dpairgoth.mode=standalone -jar application/target/pairgoth-engine.jar
|
||||||
|
@@ -26,7 +26,7 @@ class ApiTool {
|
|||||||
fun setRequest(req: HttpServletRequest) {
|
fun setRequest(req: HttpServletRequest) {
|
||||||
request = req
|
request = req
|
||||||
}
|
}
|
||||||
private fun getBearer() = AuthFilter.getBearer(request)
|
fun getBearer() = AuthFilter.getBearer(request)
|
||||||
|
|
||||||
private val client = OkHttpClient()
|
private val client = OkHttpClient()
|
||||||
private fun prepare(url: String) =
|
private fun prepare(url: String) =
|
||||||
|
@@ -88,7 +88,7 @@ Rengo with 2 players teams Rengo par équipes de 2
|
|||||||
Rengo with 3 players team Rengo par équipes de 3
|
Rengo with 3 players team Rengo par équipes de 3
|
||||||
Renumber Renuméroter
|
Renumber Renuméroter
|
||||||
Required field Champs requis
|
Required field Champs requis
|
||||||
Reset Mac Mahon groups Réinitialiser les groupes Mac Mahon
|
Reset Réinitialiser
|
||||||
Results Résultats
|
Results Résultats
|
||||||
Results for round Résultats pour la ronde
|
Results for round Résultats pour la ronde
|
||||||
Round-robin Toutes rondes
|
Round-robin Toutes rondes
|
||||||
|
@@ -110,6 +110,7 @@ HTMLFormElement.prototype.val = function(name, value) {
|
|||||||
let ctl = this.find(`[name="${name}"]`)[0];
|
let ctl = this.find(`[name="${name}"]`)[0];
|
||||||
if (!ctl) {
|
if (!ctl) {
|
||||||
console.error(`unknown input name: ${name}`)
|
console.error(`unknown input name: ${name}`)
|
||||||
|
return undefined
|
||||||
}
|
}
|
||||||
let tag = ctl.tagName;
|
let tag = ctl.tagName;
|
||||||
let type = tag === 'INPUT' ? ctl.attr('type') : undefined;
|
let type = tag === 'INPUT' ? ctl.attr('type') : undefined;
|
||||||
|
@@ -94,8 +94,9 @@ function addPlayers() {
|
|||||||
// initial search checkboxes position
|
// initial search checkboxes position
|
||||||
['countryFilter', 'aga', 'egf', 'ffg'].forEach(id => {
|
['countryFilter', 'aga', 'egf', 'ffg'].forEach(id => {
|
||||||
let value = store(id);
|
let value = store(id);
|
||||||
if (value !== null && typeof(value) !== 'undefined') {
|
let ctl = $(`#${id}`);
|
||||||
$(`#${id}`)[0].checked = value;
|
if (value !== null && typeof(value) !== 'undefined' && ctl.length) {
|
||||||
|
ctl[0].checked = value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
form.val('final', status);
|
form.val('final', status);
|
||||||
@@ -250,10 +251,13 @@ onLoad(() => {
|
|||||||
$('#needle')[0].value = '';
|
$('#needle')[0].value = '';
|
||||||
$('#search-result').clear();
|
$('#search-result').clear();
|
||||||
});
|
});
|
||||||
let searchFromState = store('searchFormState')
|
let searchFormState = store('searchFormState')
|
||||||
if (searchFromState) {
|
if (searchFormState) {
|
||||||
for (let id of ["countryFilter", "aga", "egf", "ffg"]) {
|
for (let id of ["countryFilter", "aga", "egf", "ffg"]) {
|
||||||
$(`#${id}`)[0].checked = searchFromState[id];
|
let ctl = $(`#${id}`);
|
||||||
|
if (ctl.length) {
|
||||||
|
ctl[0].checked = searchFormState[id];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$('.toggle').on('click', e => {
|
$('.toggle').on('click', e => {
|
||||||
|
@@ -252,7 +252,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<button id="reset-macmahon-groups" type="button" class="ui orange right labeled icon floating button">
|
<button id="reset-macmahon-groups" type="button" class="ui orange right labeled icon floating button">
|
||||||
<i class="trash icon"></i>
|
<i class="trash icon"></i>
|
||||||
Reset Mac Mahon groups
|
Reset
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user