Merge pull request 'Actualiser app/templates/scolar/partition_editor.j2' (#778) from pascal.bouron/ScoDoc:master into master
Reviewed-on: https://scodoc.org/git/ScoDoc/ScoDoc/pulls/778
This commit is contained in:
commit
e25ec33477
@ -543,7 +543,7 @@
|
|||||||
let params = (new URL(document.location)).searchParams;
|
let params = (new URL(document.location)).searchParams;
|
||||||
let formsemestre_id = params.get('formsemestre_id');
|
let formsemestre_id = params.get('formsemestre_id');
|
||||||
var url = "/ScoDoc/{{formsemestre.departement.acronym}}/api/formsemestre/" + formsemestre_id + "/partition/create";
|
var url = "/ScoDoc/{{formsemestre.departement.acronym}}/api/formsemestre/" + formsemestre_id + "/partition/create";
|
||||||
var payload = { partition_name: name };
|
var payload = { partition_name: name, show_in_lists: true };
|
||||||
|
|
||||||
// Save
|
// Save
|
||||||
fetch(url,
|
fetch(url,
|
||||||
@ -566,7 +566,8 @@
|
|||||||
// Ajout dans la zone filtres
|
// Ajout dans la zone filtres
|
||||||
let partition = {
|
let partition = {
|
||||||
id: r.id,
|
id: r.id,
|
||||||
partition_name: name
|
partition_name: name,
|
||||||
|
show_in_lists: true
|
||||||
}
|
}
|
||||||
|
|
||||||
let divPartition = templateFiltres_partition(partition);
|
let divPartition = templateFiltres_partition(partition);
|
||||||
|
Loading…
Reference in New Issue
Block a user