From 018624ea43cf003e1639c1d91b4f81558bb6fe55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 18 Apr 2014 17:16:08 +0200 Subject: [PATCH] [IMP] website_forum: better error messages about karma bzr revid: tde@openerp.com-20140418151608-0pb3ui97aksb9en1 --- addons/website_forum/static/src/js/website_forum.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/website_forum/static/src/js/website_forum.js b/addons/website_forum/static/src/js/website_forum.js index 3eda8a2b4ca..eed4947aab9 100644 --- a/addons/website_forum/static/src/js/website_forum.js +++ b/addons/website_forum/static/src/js/website_forum.js @@ -18,9 +18,9 @@ $(document).ready(function () { ''); } else if (data['error'] == 'not_enough_karma') { - var $warning = $('
'+ + var $warning = $('
'+ ''+ - 'Sorry, at least ' + data['karma'] + ' karma is required to vote'+ + 'Sorry, at least ' + data['karma'] + ' karma is required to vote. You can gain karma by answering questions and receiving votes.'+ '
'); } vote_alert = $link.parent().find("#vote_alert"); @@ -60,9 +60,9 @@ $(document).ready(function () { 'Sorry, only the user who asked this question can accept the answer as correct.'+ '
'); } else if (data['error'] == 'not_enough_karma') { - var $warning = $('
'+ + var $warning = $('
'+ ''+ - 'Sorry, at least ' + data['karma'] + ' karma is required to accept your own answers'+ + 'Sorry, at least ' + data['karma'] + ' karma is required to accept your own answers. You can gain karma by answering questions and receiving votes.'+ '
'); } correct_answer_alert = $link.parent().find("#correct_answer_alert");