diff --git a/webapp/home/static/home/css/request-form.css b/webapp/home/static/home/css/request-form.css index 459b9014..ace9d5ae 100644 --- a/webapp/home/static/home/css/request-form.css +++ b/webapp/home/static/home/css/request-form.css @@ -27,7 +27,7 @@ ul.errorlist { border: 1px solid var(--error); border-radius: .5rem; } -[class^="col"] { +.row [class^="col"] { padding-bottom: 1rem; } .blockquote { diff --git a/webapp/home/templates/home/requests/access/snippets/agree-terms-modal.html b/webapp/home/templates/home/requests/access/snippets/agree-terms-modal.html index 9439aad1..7435d57b 100644 --- a/webapp/home/templates/home/requests/access/snippets/agree-terms-modal.html +++ b/webapp/home/templates/home/requests/access/snippets/agree-terms-modal.html @@ -76,6 +76,8 @@ .css('padding', '1rem')); {% endif %} + const isMac = () => navigator.platform.toUpperCase().indexOf('MAC') >= 0; + function agreeTermsAction(el) { enableTermsInput(); $('#agreeTermsInput').attr('checked', true); @@ -92,16 +94,20 @@ tooltip.disable(); } + function setEventHandler() { const termsContainer = $('#termsModal iframe').contents().find('body'); if (!termsContainer.length) { return setTimeout(setEventHandler, 100); } + if (isMac()) { + return enableAgreeTermsButton(); + } $('#termsModal iframe').contents().on('scroll', (event) => { const scrollFromEnd = $(termsContainer)[0].scrollHeight - $('#termsModal iframe').contents().scrollTop() - $('#termsModal iframe').height(); - if (scrollFromEnd < 50) enableAgreeTermsButton(); + scrollFromEnd < 50 && enableAgreeTermsButton(); }); termsContainer.css('margin', 'auto'); } diff --git a/webapp/home/templates/home/requests/menu.html b/webapp/home/templates/home/requests/menu.html index 708ed181..6a65700a 100644 --- a/webapp/home/templates/home/requests/menu.html +++ b/webapp/home/templates/home/requests/menu.html @@ -70,7 +70,8 @@

save

key

- Request access to specialised tools AlphaFold 2, FGENESH++ and Cell Ranger + Request access to specialised tools AlphaFold 2, FGENESH++, + Cell Ranger and more...