From 42375190e6ee2c942db6675e2f8771f9a50ce616 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 4 Jul 2017 14:24:07 +0200 Subject: [PATCH 1/2] style buttons for long titles --- www/slide/slide.less | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/slide/slide.less b/www/slide/slide.less index dd0feb2ba..4482d85d3 100644 --- a/www/slide/slide.less +++ b/www/slide/slide.less @@ -239,6 +239,9 @@ div.modal, div#modal { transition: margin-left 1s; } } + media-tag button { + max-height: none; + } } box-sizing: border-box; From be7e7fec432c894dec299a9d7c55e1735907291b Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 4 Jul 2017 14:56:03 +0200 Subject: [PATCH 2/2] don't bypass warnings when registering --- www/register/main.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/www/register/main.js b/www/register/main.js index f0b9a2e9c..97a1d1a20 100644 --- a/www/register/main.js +++ b/www/register/main.js @@ -118,6 +118,7 @@ define([ return void Cryptpad.alert(Messages.register_mustAcceptTerms); } + setTimeout(function () { Cryptpad.confirm("

" + Messages.register_warning + "

", function (yes) { if (!yes) { return; } @@ -200,6 +201,24 @@ define([ }, true, function ($dialog) { $dialog.find('> div').addClass('half'); }); + }, 150); + }); + + var clickRegister = Cryptpad.notAgainForAnother(function () { + $register.click(); + }, 500); + + $register.on('keypress', function (e) { + e.preventDefault(); + e.stopPropagation(); + + console.error(e.which); + switch (e.which) { + case 13: return clickRegister(); + case 13: return clickRegister(); + default: + //console.log(e.which); + } }); Test(function () {