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"/>
|
||||
Groupes: %s
|
||||
</form>
|
||||
<form>
|
||||
<form id="abs_form">
|
||||
"""
|
||||
% (
|
||||
gr_tit,
|
||||
@ -983,7 +983,7 @@ class ZAbsences(
|
||||
les <span class="fontred">%s</span></h2>
|
||||
<p>
|
||||
<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),
|
||||
]
|
||||
|
@ -30,10 +30,9 @@ function ajaxFunction(mod, etudid, dat) {
|
||||
}
|
||||
ajaxRequest.open("POST", "doSignaleAbsenceGrSemestre", true);
|
||||
ajaxRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
||||
oForm = document.forms[1];
|
||||
oSelectOne = oForm.elements["moduleimpl_id"];
|
||||
index = oSelectOne.selectedIndex;
|
||||
modul_id = oSelectOne.options[index].value;
|
||||
var oSelectOne = $("#abs_form")[0].elements["moduleimpl_id"];
|
||||
var index = oSelectOne.selectedIndex;
|
||||
var modul_id = oSelectOne.options[index].value;
|
||||
if (mod == 'add') {
|
||||
ajaxRequest.send("reply=0&moduleimpl_id=" + modul_id + "&abslist:list=" + etudid + ":" + dat);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user