From 419257076af2cc002de7914cfdd64d0b9d0a94c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Mon, 7 Mar 2011 13:56:38 +0000 Subject: [PATCH] =?UTF-8?q?Freigabe=20von=20Projektarbeiten=20ist=20standa?= =?UTF-8?q?rdm=C3=A4=C3=9Fig=20auf=20true=20gesetzt.=20Beim=20=C3=84ndern?= =?UTF-8?q?=20des=20Gesperrtdatums=20wird=20die=20Freigabe=20entfernt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/bindings.xml.php | 2 +- content/student/studentprojektarbeit.js.php | 12 +++++++++++- content/student/studentprojektarbeitoverlay.xul.php | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/content/bindings.xml.php b/content/bindings.xml.php index de257e8ba..0ac99d8f2 100644 --- a/content/bindings.xml.php +++ b/content/bindings.xml.php @@ -43,7 +43,7 @@ echo ''; + onselect="parentNode.parentNode.parentNode.parentNode.value=this.selection.currentDay+'.'+(parseInt(this.selection.currentMonth)+1)+'.'+this.selection.currentYear; var evt = parentNode.parentNode.ownerDocument.createEvent('HTMLEvents');evt.initEvent('change', true, true );parentNode.parentNode.dispatchEvent( evt );"/> diff --git a/content/student/studentprojektarbeit.js.php b/content/student/studentprojektarbeit.js.php index e18d60d81..3c9a23d67 100644 --- a/content/student/studentprojektarbeit.js.php +++ b/content/student/studentprojektarbeit.js.php @@ -216,6 +216,16 @@ function StudentProjektarbeitDetailDisableFields(val) StudentProjektarbeitResetFields(); } +// **** +// * Wenn in das Gesperrt-Feld ein Wert eingetragen wird, dann wird das Freigegeben Hackerl entfernt +function StudentProjektarbeitGesperrtChanged() +{ + if(document.getElementById('student-projektarbeit-datum-gesperrtbis').value!='') + { + document.getElementById('student-projektarbeit-checkbox-freigegeben').checked=false; + } +} + // **** // * Resetet die ProjektarbeitDetailFelder // **** @@ -227,7 +237,7 @@ function StudentProjektarbeitResetFields() document.getElementById('student-projektarbeit-datum-beginn').value=''; document.getElementById('student-projektarbeit-datum-ende').value=''; document.getElementById('student-projektarbeit-textbox-faktor').value='1.0'; - document.getElementById('student-projektarbeit-checkbox-freigegeben').checked=false; + document.getElementById('student-projektarbeit-checkbox-freigegeben').checked=true; document.getElementById('student-projektarbeit-datum-gesperrtbis').value=''; document.getElementById('student-projektarbeit-textbox-stundensatz').value='80.0'; document.getElementById('student-projektarbeit-textbox-gesamtstunden').value='3.0'; diff --git a/content/student/studentprojektarbeitoverlay.xul.php b/content/student/studentprojektarbeitoverlay.xul.php index f9035425c..d22cb9826 100644 --- a/content/student/studentprojektarbeitoverlay.xul.php +++ b/content/student/studentprojektarbeitoverlay.xul.php @@ -273,7 +273,7 @@ echo '';