From 00aee8c6226ad82b3448da72c48d9f646fdbfaa3 Mon Sep 17 00:00:00 2001 From: Yalin Wang Date: Thu, 19 Mar 2015 20:49:35 -0500 Subject: [PATCH 1/2] fix bug where last character in search keyword couldn't be cleared with backspace. issue #825 --- packages/telescope-search/lib/client/routes.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/telescope-search/lib/client/routes.js b/packages/telescope-search/lib/client/routes.js index 269e7e718..2dc46dd11 100644 --- a/packages/telescope-search/lib/client/routes.js +++ b/packages/telescope-search/lib/client/routes.js @@ -5,7 +5,13 @@ Meteor.startup(function () { onBeforeAction: function() { var query = this.params.query; if ('q' in query) { - Session.set('searchQuery', query.q); + // if search box has 'empty' class, that means user just deleted last character in search keyword + // but router hasn't updated url, so params.query still has '?q=' + // if we set searchQuery in this case, user will see last character pops up again unexpectedly + // so add this check to fix the bug. issue #825 + if (!$('.search').hasClass('empty')) { + Session.set('searchQuery', query.q); + } if (query.q) { Meteor.call('logSearch', query.q) } From c5e6452bb8eef53a74a1c323754bb532f66e4c7a Mon Sep 17 00:00:00 2001 From: Alan Meira Date: Sat, 21 Mar 2015 00:11:05 -0300 Subject: [PATCH 2/2] Added missing translations in Brazilian Portuguese --- i18n/pt-BR.i18n.json | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/i18n/pt-BR.i18n.json b/i18n/pt-BR.i18n.json index 393c784f4..ecb682557 100644 --- a/i18n/pt-BR.i18n.json +++ b/i18n/pt-BR.i18n.json @@ -21,8 +21,9 @@ // Settings Schema "title": "Título", + "description": "Descrição", "siteUrl": "URL do site", - "tagline": "Descrição", + "tagline": "Tagline", "requireViewInvite": "Exigir Convite para Ver", "requirePostInvite": "Exigir Convite para Postar", "requirePostsApproval": "Exigir Postagens serem Aprovadas", @@ -52,6 +53,12 @@ "emailFooter": "Rodapé do Email", "notes": "Notas", "debug": "Modo de Debug", + "fontUrl": "URL da Fonte", + "fontFamily": "Família da Fonte", + "authMethods": "Métodos de Autenticação", + "faviconUrl": "URL do Favicon", + "mailURL": "MailURL", + "postsLayout": "Layout dos Posts", // Settings Fieldsets "general": "Geral", @@ -103,6 +110,7 @@ "edit": "Editar", "reply": "Responder", "no_comments": "Sem comentários.", + "please_sign_in_to_reply": "Por favor, registre-se para responder", //Errors "you_are_already_logged_in": "Você já está logado", @@ -113,6 +121,7 @@ "sorry_you_do_not_have_the_rights_to_comments": "Desculpe, você não pode comentar neste momento.", "not_found": "Não Encontrado!", "were_sorry_whatever_you_were_looking_for_isnt_here": "Nos desculpe; o que estava procurando não se encontra aqui...", + "disallowed_property_detected": "Propriedade não permitida detectada", //Notifications "no_notifications": "Sem notificações", @@ -256,8 +265,6 @@ "upvoted": "Votado", "posted_date": "Data da Postagem", "posted_time": "Hora da da Postagem", - "posted_date": "Data da Postagem", - "posted_time": "Hora da da Postagem", "profile": "Perfil", "sign_out": "Sair", "you_ve_been_signed_out": "Você saiu com sucesso. Volte logo!",