forked from ScoDoc/ScoDoc
Fix: form saise abs
This commit is contained in:
parent
86a517d40d
commit
d27b8d127d
@ -795,7 +795,7 @@ class ZAbsences(
|
|||||||
<input type="hidden" name="moduleimpl_id" id="moduleimpl_id_o" value="%s"/>
|
<input type="hidden" name="moduleimpl_id" id="moduleimpl_id_o" value="%s"/>
|
||||||
Groupes: %s
|
Groupes: %s
|
||||||
</form>
|
</form>
|
||||||
<form>
|
<form id="abs_form">
|
||||||
"""
|
"""
|
||||||
% (
|
% (
|
||||||
gr_tit,
|
gr_tit,
|
||||||
@ -983,7 +983,7 @@ class ZAbsences(
|
|||||||
les <span class="fontred">%s</span></h2>
|
les <span class="fontred">%s</span></h2>
|
||||||
<p>
|
<p>
|
||||||
<a href="%s">%s</a>
|
<a href="%s">%s</a>
|
||||||
<form action="doSignaleAbsenceGrSemestre" method="post">
|
<form id="abs_form" action="doSignaleAbsenceGrSemestre" method="post">
|
||||||
"""
|
"""
|
||||||
% (gr_tit, sem["titre_num"], dayname, url_link_semaines, msg),
|
% (gr_tit, sem["titre_num"], dayname, url_link_semaines, msg),
|
||||||
]
|
]
|
||||||
|
@ -30,10 +30,9 @@ function ajaxFunction(mod, etudid, dat) {
|
|||||||
}
|
}
|
||||||
ajaxRequest.open("POST", "doSignaleAbsenceGrSemestre", true);
|
ajaxRequest.open("POST", "doSignaleAbsenceGrSemestre", true);
|
||||||
ajaxRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
ajaxRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
||||||
oForm = document.forms[1];
|
var oSelectOne = $("#abs_form")[0].elements["moduleimpl_id"];
|
||||||
oSelectOne = oForm.elements["moduleimpl_id"];
|
var index = oSelectOne.selectedIndex;
|
||||||
index = oSelectOne.selectedIndex;
|
var modul_id = oSelectOne.options[index].value;
|
||||||
modul_id = oSelectOne.options[index].value;
|
|
||||||
if (mod == 'add') {
|
if (mod == 'add') {
|
||||||
ajaxRequest.send("reply=0&moduleimpl_id=" + modul_id + "&abslist:list=" + etudid + ":" + dat);
|
ajaxRequest.send("reply=0&moduleimpl_id=" + modul_id + "&abslist:list=" + etudid + ":" + dat);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user