diff --git a/www/register/main.js b/www/register/main.js index 95849e193..3c77d0f53 100644 --- a/www/register/main.js +++ b/www/register/main.js @@ -10,9 +10,10 @@ define([ '/common/common-constants.js', '/common/common-feedback.js', '/common/outer/local-store.js', + '/common/hyperscript.js', 'css!/bower_components/components-font-awesome/css/font-awesome.min.css', -], function ($, Login, Cryptpad, Test, Cred, UI, Util, Realtime, Constants, Feedback, LocalStore) { +], function ($, Login, Cryptpad, Test, Cred, UI, Util, Realtime, Constants, Feedback, LocalStore, h) { var Messages = Cryptpad.Messages; $(function () { @@ -100,7 +101,12 @@ define([ } setTimeout(function () { - UI.confirm("

" + Messages.register_warning + "

" + Messages.register_warning_note, + var span = h('span', [ + UI.setHTML(h('h2'), Messages.register_warning), // TODO remove the icon from this translation string and pass it separately + Messages.register_warning_note + ]); + + UI.confirm(span, function (yes) { if (!yes) { return; } @@ -124,7 +130,7 @@ define([ done: function ($dialog) { $dialog.find('> div').addClass('half'); }, - }, true); + }); }, 150); };