mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
General code review
This commit is contained in:
parent
3091a06194
commit
5c6f84a68e
@ -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,
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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');
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user