class aus JavaScript-Dateien entfernt.

This commit is contained in:
Lyndon Jetten
2019-11-27 18:00:29 +01:00
parent 8aca6fbe7c
commit 2f2a2aa704
2 changed files with 13 additions and 15 deletions

View File

@@ -1,15 +1,13 @@
class Appointment {
constructor(pStartDate, pStartTime, pEndTime, pSubject, pNotice, pEndDate, pLocation) {
this.startDate = pStartDate;
this.startTime = pStartTime;
this.endDate = pEndDate;
this.endTime = pEndTime;
this.subject = pSubject;
this.notice = pNotice;
this.location = pLocation;
}
function Appointment(pStartDate, pStartTime, pEndTime, pSubject, pNotice, pEndDate, pLocation) {
this.startDate = pStartDate;
this.startTime = pStartTime;
this.endDate = pEndDate;
this.endTime = pEndTime;
this.subject = pSubject;
this.notice = pNotice;
this.location = pLocation;
isValid() {
this.isValid = function() {
return this.startDate != null && this.startDate !== "" &&
this.startTime != null && this.startTime !== "" &&
this.endDate != null && this.endDate !== "" &&

View File

@@ -226,8 +226,8 @@ function appointmentOnClick(element, appointmentOid) {
$("#KalenderTable").css("display", "none");
$("#KalenderNavigation").css("display", "none");
$("#KalenderTableTask").css("display", "none");
$("#StartDate").val(startDate.dateString);
$("#EndDate").val(endDate.dateString);
$("#StartDate").val(startDate.getBeWoDateObjectDateString());
$("#EndDate").val(endDate.getBeWoDateObjectDateString());
$("#TerminStartZeit").val(startTime);
$("#TerminEndZeit").val(endTime);
@@ -289,7 +289,7 @@ function checkAppointmentFields() {
var newAppointmentEndTime = $("#TerminEndZeit").val();
var newAppointmentSubject = $("#TerminBetreff").val();
var newAppointmentLocation = $("#AppointmentLocation").val();
alert("alört");
var errorList = [];
var shouldShowErrorMessage = false;
@@ -538,7 +538,7 @@ function initAppointmentEditForm() {
$("#EndDate").prop("readonly", false);
$("#TerminStartZeit").prop("readonly", false);
$("#TerminEndZeit").prop("readonly", false);
$("#TerminBetreff").prop('readonly', false);
$("#TerminBetreff").prop("readonly", false);
$("#TerminNotiz").prop("readonly", false);
$("#TerminSpeichern").val("Speichern");