draft PR for sticker printing.
This commit is contained in:
@@ -486,4 +486,8 @@ html[data-bs-theme="light"] .api-method:hover {
|
||||
.lubelogger-report-banner {
|
||||
border-top: thin solid black;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.stickerPrintDiv {
|
||||
z-index: 1030;
|
||||
}
|
||||
@@ -117,6 +117,9 @@ function generateVehicleHistoryReport() {
|
||||
$("#vehicleHistoryReport").html(data);
|
||||
setTimeout(function () {
|
||||
window.print();
|
||||
setTimeout(function () {
|
||||
$("#vehicleHistoryReport").html(""); //clear out the div.
|
||||
}, 1000)
|
||||
}, 500);
|
||||
}
|
||||
})
|
||||
|
||||
@@ -617,6 +617,17 @@ function printTab() {
|
||||
window.print();
|
||||
}, 500);
|
||||
}
|
||||
function printTabStickers(ids, source) {
|
||||
$(".stickerPrintDiv").addClass("showOnPrint");
|
||||
$(".stickerPrintDiv").removeClass("hideOnPrint");
|
||||
setTimeout(function () {
|
||||
window.print();
|
||||
setTimeout(function () {
|
||||
$(".stickerPrintDiv").removeClass("showOnPrint");
|
||||
$(".stickerPrintDiv").addClass("hideOnPrint");
|
||||
}, 1000);
|
||||
}, 500);
|
||||
}
|
||||
function exportVehicleData(mode) {
|
||||
var vehicleId = GetVehicleId().vehicleId;
|
||||
$.get('/Vehicle/ExportFromVehicleToCsv', { vehicleId: vehicleId, mode: mode }, function (data) {
|
||||
|
||||
Reference in New Issue
Block a user