diff --git a/assets/src/js/base/custom.js b/assets/src/js/base/custom.js index 6d3c9e29b..075b3cc16 100644 --- a/assets/src/js/base/custom.js +++ b/assets/src/js/base/custom.js @@ -97,6 +97,9 @@ $(document).ready(function () { $('input').trigger('blur'); }); }, 1000); + + alignMaxHeight(".module-header .card"); + }); /* @@ -123,4 +126,14 @@ function sendWhatsAppMessage(phoneNumber, message) { var text = message ? "&text=" + encodeURIComponent(message) : ""; var url = "https://api.whatsapp.com/send?phone=" + phoneNumber + text; window.open(url); -} \ No newline at end of file +} + +function alignMaxHeight(element){ + max_height = 0; + $(element).each( function(){ + if($(this).height() > max_height){ + max_height = $(this).height(); + } + }); + $(element).height(max_height); +}