1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-08 13:52:18 +01:00

fix: spostamento js allineamento header

This commit is contained in:
valentina 2024-10-16 15:46:27 +02:00
parent 3f5eb64b19
commit 969e8577a0

View File

@ -97,6 +97,9 @@ $(document).ready(function () {
$('input').trigger('blur'); $('input').trigger('blur');
}); });
}, 1000); }, 1000);
alignMaxHeight(".module-header .card");
}); });
/* /*
@ -123,4 +126,14 @@ function sendWhatsAppMessage(phoneNumber, message) {
var text = message ? "&text=" + encodeURIComponent(message) : ""; var text = message ? "&text=" + encodeURIComponent(message) : "";
var url = "https://api.whatsapp.com/send?phone=" + phoneNumber + text; var url = "https://api.whatsapp.com/send?phone=" + phoneNumber + text;
window.open(url); window.open(url);
} }
function alignMaxHeight(element){
max_height = 0;
$(element).each( function(){
if($(this).height() > max_height){
max_height = $(this).height();
}
});
$(element).height(max_height);
}