Refactoring
This commit is contained in:
@@ -219,6 +219,7 @@
|
||||
<Content Include="Scripts\serviceRecordValidation.js" />
|
||||
<Content Include="Scripts\statistics.js" />
|
||||
<Content Include="Scripts\textbausteine.js" />
|
||||
<Content Include="Scripts\unterschrift.js" />
|
||||
<Content Include="Scripts\utils.js" />
|
||||
<Content Include="TestWebService.asmx" />
|
||||
<Content Include="Web.config">
|
||||
|
||||
@@ -278,3 +278,18 @@ function LoadOnly(i, x) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function nextDayButtonClick() {
|
||||
var nextdatum = new Date($("#KalenderDatum").val() + "T00:00:00Z");
|
||||
|
||||
nextdatum.setDate((nextdatum.getDate() + 1));
|
||||
|
||||
$("#KalenderDatum").val(toDateStringYearMonthDay(nextdatum));
|
||||
|
||||
var newtoday = getDateStringWithLeadingZeros(nextdatum);
|
||||
|
||||
$("#KalenderDatumFormat").val(newtoday);
|
||||
|
||||
loadAppointments(newtoday);
|
||||
}
|
||||
@@ -1,8 +1,6 @@
|
||||
var breitenGrad, langenGrad, date;
|
||||
var dataURL = "";
|
||||
var blob, newday, longrider;
|
||||
var xinner = $("#GeoLocSaveXCOOR");
|
||||
var yinner = $("#GeoLocSaveYCOOR");
|
||||
|
||||
var ZeiterfassungDatakonstrukt = [];
|
||||
var KlientDatakonstrukt = [];
|
||||
@@ -40,6 +38,9 @@ function actuallyBuildCollapsibleSet(kollektion, selectedGoalOids) {
|
||||
var level = 0;
|
||||
|
||||
var collapsibleHtml;
|
||||
|
||||
zeitRegEx = /^(2[0-3]|[01]?[0-9])(:|,|\.|#|;)?([0-5][0-9])$/;
|
||||
|
||||
function buildGoalTreeItem(goalItem, selectedGoalOids) {
|
||||
var goalOid = goalItem.ValueListEntryOid;
|
||||
var goalHeader = goalItem.Header;
|
||||
@@ -144,8 +145,6 @@ function resizeLabelColumns() {
|
||||
$("#tabLbl").css("width", $("#zieleLbl").css("width"));
|
||||
}
|
||||
|
||||
zeitRegEx = /^(2[0-3]|[01]?[0-9])(:|,|\.|#|;)?([0-5][0-9])$/;
|
||||
|
||||
function loadGoals(actionPath) {
|
||||
var selectedServiceRecord = $($("#scDropDown")).find(":selected").val();
|
||||
|
||||
@@ -728,26 +727,6 @@ function hideEditForm() {
|
||||
$("#StartDate").val("");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function nextDayButtonClick() {
|
||||
var nextdatum = new Date($("#KalenderDatum").val() + "T00:00:00Z");
|
||||
|
||||
nextdatum.setDate((nextdatum.getDate() + 1));
|
||||
|
||||
$("#KalenderDatum").val(toDateStringYearMonthDay(nextdatum));
|
||||
|
||||
var newtoday = getDateStringWithLeadingZeros(nextdatum);
|
||||
|
||||
$("#KalenderDatumFormat").val(newtoday);
|
||||
|
||||
loadAppointments(newtoday);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function showServiceRecords() {
|
||||
location.reload();
|
||||
|
||||
|
||||
@@ -1,15 +1,6 @@
|
||||
var isValidRecord = true;
|
||||
|
||||
function validateServiceRecordBeforeSubmit() {
|
||||
function getLocation() {
|
||||
if (navigator.geolocation) {
|
||||
navigator.geolocation.getCurrentPosition(showPosition, showError);
|
||||
} else {
|
||||
console.log("Ortung wird von diesem Browser nicht unterstützt");
|
||||
showPosition(null);
|
||||
}
|
||||
}
|
||||
|
||||
var hasDokutext = false;
|
||||
|
||||
if (window.isServiceRecordNoticeMandatory) {
|
||||
@@ -59,8 +50,6 @@ function validateServiceRecordBeforeSubmit() {
|
||||
makeAjaxCall("POST", window.checkRightsUrl, function (json) {
|
||||
$("#URLSave").val(dataURL);
|
||||
$("#TimeStampSave").val(newday);
|
||||
$("#GeoLocSaveXCOOR").val(langenGrad);
|
||||
$("#GeoLocSaveYCOOR").val(breitenGrad);
|
||||
|
||||
if (json === "SessionTimeout") {
|
||||
window.location.href = redirectLink;
|
||||
|
||||
Reference in New Issue
Block a user