From 7c735a5de2fd7f559e11281a3b53518c76e3d074 Mon Sep 17 00:00:00 2001 From: Vincent Widmer Date: Sun, 21 Jul 2019 09:14:47 +0200 Subject: [PATCH] Minor changes - Add input focus for author login - Change mail sending to HTML - Change space name max length to 35 - Add favicon - Change version number --- .../templates/account/reset-password.html | 31 ++++++++++--------- .../templates/account/reset-password.js | 7 +++++ .../templates/admin/admin_space_submit.js | 2 +- .../templates/headers/space_header.html | 4 +-- .../templates/headers/users_header.html | 6 ++-- .../templates/space/home/home_post_edit.html | 2 +- .../space/settings/general_settings.js | 4 +-- src/client/templates/space/space_sidebar.html | 1 + src/client/templates/space/space_submit.js | 2 +- src/client/templates/space/space_users.html | 4 +-- .../space/space_users_first_connection.html | 2 +- .../space/space_users_first_connection.js | 9 +++++- src/lib/collections/authors.js | 8 ++++- src/lib/collections/posts.js | 4 +++ src/lib/i18n/en.i18n.json | 1 + src/lib/i18n/fr-FR.i18n.json | 1 + src/main.html | 1 + src/private/version.json | 2 +- src/server/methods.js | 12 +++---- 19 files changed, 67 insertions(+), 36 deletions(-) diff --git a/src/client/templates/account/reset-password.html b/src/client/templates/account/reset-password.html index a1aa439..a5f6a0b 100644 --- a/src/client/templates/account/reset-password.html +++ b/src/client/templates/account/reset-password.html @@ -1,19 +1,22 @@ \ No newline at end of file diff --git a/src/client/templates/account/reset-password.js b/src/client/templates/account/reset-password.js index 9d348ac..2b03874 100644 --- a/src/client/templates/account/reset-password.js +++ b/src/client/templates/account/reset-password.js @@ -1,3 +1,10 @@ +Template.resetPassword.onRendered(function () { + + // Enable autofocus + $('#password').focus(); +}); + + Template.resetPassword.events({ 'submit form': function(e) { diff --git a/src/client/templates/admin/admin_space_submit.js b/src/client/templates/admin/admin_space_submit.js index 1ed8ccc..a6efd40 100644 --- a/src/client/templates/admin/admin_space_submit.js +++ b/src/client/templates/admin/admin_space_submit.js @@ -5,7 +5,7 @@ Template.adminSpaceSubmit.onRendered(function () { "spaceName": { required: true, minlength: 3, - maxlength: 20 + maxlength: 35 } } }); diff --git a/src/client/templates/headers/space_header.html b/src/client/templates/headers/space_header.html index 03b7d44..1ef0191 100644 --- a/src/client/templates/headers/space_header.html +++ b/src/client/templates/headers/space_header.html @@ -2,7 +2,7 @@