diff --git a/application/views/simplefle/index.php b/application/views/simplefle/index.php index 744bb4e43..8f618b969 100644 --- a/application/views/simplefle/index.php +++ b/application/views/simplefle/index.php @@ -126,12 +126,10 @@ - -
-
+
-
+
diff --git a/assets/js/sections/simplefle.js b/assets/js/sections/simplefle.js index 7862c0e65..6d5d7528f 100644 --- a/assets/js/sections/simplefle.js +++ b/assets/js/sections/simplefle.js @@ -526,11 +526,13 @@ function clearSession() { $(".js-qso-count").html(""); errors = []; $(".js-status").html(""); + window.location.reload(); } function showErrors() { if (errors) { $(".js-status").html(errors.join("\n")); + resizeElements(); } } @@ -822,6 +824,8 @@ function resizeElements() { var textarea = $('#sfle_textarea'); var textareaOffset = 40; + var errorMessagesContainer = $('#errorMessages'); + var tableFrame = $('.sfletable.table'); var tableFrameOffset = 140; @@ -829,7 +833,7 @@ function resizeElements() { var tableoOffset = 160; if ($(window).width() >= 768) { - var newHeight = $(window).height() - textarea.offset().top - textareaOffset; + var newHeight = $(window).height() - textarea.offset().top - textareaOffset - errorMessagesContainer.height(); textarea.css('height', newHeight + 'px'); var newHeight = $(window).height() - tableFrame.offset().top - tableFrameOffset;