General code review

This commit is contained in:
Bernd Bestel 2022-04-03 19:14:54 +02:00
parent 3091a06194
commit 5c6f84a68e
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
4 changed files with 32 additions and 30 deletions

View File

@ -228,7 +228,8 @@ form.has-sticky-form-footer .form-group:nth-last-child(2) {
cursor: wait;
}
.expandable-text .collapse, .module .collapsing {
.expandable-text .collapse,
.module .collapsing {
height: 2.4rem;
}
@ -255,7 +256,8 @@ form.has-sticky-form-footer .form-group:nth-last-child(2) {
.table-inline-menu.dropdown-menu {
padding-left: 12px;
padding-right: 12px;
width: 96vw; /* Set width of popup menu to screen size */
width: 96vw;
/* Set width of popup menu to screen size */
}
a:not([href]) {
@ -331,7 +333,8 @@ a:not([href]) {
padding-right: 0.75rem !important;
}
.btn-group-xs > .btn, .btn-xs {
.btn-group-xs>.btn,
.btn-xs {
padding: 0.25rem 0.4rem;
font-size: 0.875rem;
line-height: 0.5;
@ -492,7 +495,6 @@ canvas.drawingBuffer {
top: 0;
}
.warning-message,
.error-message,
.normal-message,

View File

@ -80,7 +80,7 @@ function DisplayEquipment(id)
$("#file-userfield-" + userfield.name + "-download-button").addClass("d-none");
$("#file-userfield-" + userfield.name + "-empty-hint").removeClass("d-none");
}
});;
});
},
function(xhr)
{

View File

@ -88,7 +88,7 @@
Grocy.Api.UploadFile($("#instruction-manual")[0].files[0], 'equipmentmanuals', jsonData.instruction_manual_file_name,
function(result)
{
window.location.href = U('/equipment');;
window.location.href = U('/equipment');
},
function(xhr)
{
@ -99,7 +99,7 @@
}
else
{
window.location.href = U('/equipment');;
window.location.href = U('/equipment');
}
});
},

View File

@ -606,11 +606,11 @@ $('#save-add-product-button').on('click', function(e)
}
var jsonData = $('#add-product-form').serializeJSON();
jsonData.day = Grocy.Components.DateTimePicker.GetValue();;
jsonData.day = Grocy.Components.DateTimePicker.GetValue();
delete jsonData.display_amount;
jsonData.product_amount = jsonData.amount;
delete jsonData.amount;
jsonData.product_qu_id = $("#qu_id").val();;
jsonData.product_qu_id = $("#qu_id").val();
delete jsonData.qu_id;
jsonData.section_id = jsonData.section_id_product;
delete jsonData.section_id_product;