Skip to content

Commit

Permalink
Fixed issue #16636: False warning about the screen resolution (#1570)
Browse files Browse the repository at this point in the history
The window size used for validation was only retrieved on "document ready" event of the login page.
Added a handler for the window resize event to keep the 'width' field updated until form sumbission.
  • Loading branch information
gabrieljenik committed Sep 7, 2020
1 parent b822442 commit 6e468f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/views/admin/authentication/login.php
Expand Up @@ -154,4 +154,7 @@
$('#user').focus();
$("#width").val($(window).width());
});
$( window ).resize(function() {
$("#width").val($(window).width());;
});
</script>

0 comments on commit 6e468f5

Please sign in to comment.