From 6fdb187215376fe11b21e1e5fe852700c4b18c85 Mon Sep 17 00:00:00 2001 From: Gerald Raab Date: Fri, 31 Aug 2007 11:49:10 +0000 Subject: [PATCH] async --- cis/private/lehre/benotungstool/lvgesamtnoteeintragen.php | 5 ++++- cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cis/private/lehre/benotungstool/lvgesamtnoteeintragen.php b/cis/private/lehre/benotungstool/lvgesamtnoteeintragen.php index a024815b0..954f17d13 100755 --- a/cis/private/lehre/benotungstool/lvgesamtnoteeintragen.php +++ b/cis/private/lehre/benotungstool/lvgesamtnoteeintragen.php @@ -123,7 +123,10 @@ if (isset($_REQUEST["submit"]) && ($_REQUEST["student_uid"] != '') && ((($note>0 $lvgesamtnote->updateamum = $jetzt; $lvgesamtnote->updatevon = $user; $new = false; - $response = "update"; + if ($lvgesamtnote->freigabedatum) + $response = "update_f"; + else + $response = "update"; } if (!$lvgesamtnote->save($new)) echo "".$lvgesamtnote->errormsg.""; diff --git a/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php b/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php index 817437ad8..ba7e3774e 100644 --- a/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php +++ b/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php @@ -105,7 +105,7 @@ require_once('../../../../include/zeugnisnote.class.php'); uid = stud_uid; var note = document.getElementById(uid).note.value; var resp = anfrage.responseText; - if (resp == "neu" || resp == "update") + if (resp == "neu" || resp == "update" || resp == "update_f") { notentd = document.getElementById("note_"+uid); @@ -116,7 +116,7 @@ require_once('../../../../include/zeugnisnote.class.php'); notenode = document.createTextNode(note); notentd.appendChild(notenode); notenstatus = document.getElementById("status_"+uid); - if (resp == "update") + if (resp == "update_f") notenstatus.innerHTML = ""; } else