29 lines
1.0 KiB
JavaScript
29 lines
1.0 KiB
JavaScript
function prepareReportSignature() {
|
|
$("#report-form-container").hide();
|
|
$("#report-signature-container").addClass("d-block");
|
|
|
|
var customer = $("#customers-drop-down option:selected").text();
|
|
var month = $("#month-select option:selected").text();
|
|
var year = $("#year-select option:selected").text();
|
|
|
|
$("#report-info-column").html("Unterschrift für erbrachte Leistungen von " + customer + " im " + month + " " + year);
|
|
|
|
resizeCanvas();
|
|
}
|
|
|
|
function saveReportSignature() {
|
|
// TODO: Meldung anzeigen
|
|
}
|
|
|
|
function confirmReportSignatureCancellation() {
|
|
showMessagePopupWithCallback("Unterschrift", "Sind Sie sicher, dass Sie die Unterschrift nicht speichern möchten?",
|
|
function() {
|
|
$("#report-signature-container").removeClass("d-block");
|
|
$("#report-form-container").show();
|
|
|
|
var canvas = document.getElementById("sketch-pad");
|
|
var context = canvas.getContext("2d");
|
|
context.clearRect(0, 0, canvas.width, canvas.height);
|
|
|
|
}, false);
|
|
} |