1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-04-28 03:32:36 +00:00

Compare commits

..

No commits in common. "0499885fc8031852f75f0276e2cab87520c34d5d" and "56aad288f444faba7e8ad8417d4d1e042f2f6b62" have entirely different histories.

4 changed files with 13 additions and 13 deletions

View File

@ -1414,8 +1414,8 @@ class Pool(models.Model):
if has_observer:
merge_cells.append(f"{getcol(9 + i * passage_width)}2:{getcol(10 + i * passage_width)}2")
merge_cells.append(f"{getcol(9 + i * passage_width)}{max_row + 3}"
f":{getcol(10 + i * passage_width)}{max_row + 3}")
merge_cells.append(f"{getcol(9 + i * passage_width)}{max_row + 3}"
f":{getcol(10 + i * passage_width)}{max_row + 3}")
merge_cells.append(f"A{max_row + 1}:B{max_row + 1}")
merge_cells.append(f"A{max_row + 2}:B{max_row + 2}")
merge_cells.append(f"A{max_row + 3}:B{max_row + 3}")

View File

@ -389,14 +389,14 @@ if TFJM_APP == "TFJM":
)
PROBLEMS = [
"Une bonne humeur contagieuse",
"Drôles de toboggans",
"Plats à tarte gradués",
"Transformation de papillons",
"Gerrymandering",
"Le cauchemar de la ligne 20-25",
"Taxes routières",
"Points colorés sur un cercle",
"Triominos",
"Rassemblements mathématiques",
"Tournoi de ping-pong",
"Dépollution de la Seine",
"Électron libre",
"Pièces truquées",
"Drôles de cookies",
"Création d'un jeu",
]
elif TFJM_APP == "ETEAM":
PREFERRED_LANGUAGE_CODE = 'en'

View File

@ -1,9 +1,9 @@
function initModal(target, url, content_id = 'form-content', always_refetch = false) {
function initModal(target, url, content_id = 'form-content') {
document.querySelectorAll('[data-bs-target="#' + target + 'Modal"]')
.forEach(elem => elem.addEventListener('click', () => {
let modalBody = document.querySelector("#" + target + "Modal div.modal-body")
if (!modalBody.innerHTML.trim() || always_refetch) {
if (!modalBody.innerHTML.trim()) {
if (url instanceof Function) url = url()
fetch(url, {headers: {'CONTENT-ONLY': '1'}})

View File

@ -106,7 +106,7 @@
{% if user.is_authenticated and user.registration.is_admin %}
initModal("search",
() => "{% url "haystack_search" %}?q=" + encodeURI(document.getElementById("search-term").value),
"search-results", true)
"search-results")
{% endif %}
{% if not user.is_authenticated %}