summaryrefslogtreecommitdiff
path: root/addons/website_forum/static/src/js/website_forum.js
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2014-06-12 18:59:15 +0200
committerOlivier Dony <odo@openerp.com>2014-06-12 18:59:15 +0200
commit0f01df42eaf662987abe5f069ca8df2e2caf8e37 (patch)
tree3cbe73598a919d0c037f68d991d5366afb496783 /addons/website_forum/static/src/js/website_forum.js
parent114e95b113ee30f8edb965b938739948496f2168 (diff)
parentf15cbd652035d513b4dfb412025f5997323d3229 (diff)
[MERGE] Forward-port saas-5 up to f15cbd6
Diffstat (limited to 'addons/website_forum/static/src/js/website_forum.js')
-rw-r--r--addons/website_forum/static/src/js/website_forum.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/addons/website_forum/static/src/js/website_forum.js b/addons/website_forum/static/src/js/website_forum.js
index 0b45d4311c1..9d4e9e587c9 100644
--- a/addons/website_forum/static/src/js/website_forum.js
+++ b/addons/website_forum/static/src/js/website_forum.js
@@ -54,15 +54,10 @@ $(document).ready(function () {
'<button type="button" class="close notification_close" data-dismiss="alert" aria-hidden="true">&times;</button>'+
'Sorry, anonymous users cannot choose correct answer.'+
'</div>');
- } else if (data['error'] == 'own_post'){
- var $warning = $('<div class="alert alert-danger alert-dismissable" id="correct_answer_alert" style="position:absolute; margin-top: -30px; margin-left: 90px;">'+
- '<button type="button" class="close notification_close" data-dismiss="alert" aria-hidden="true">&times;</button>'+
- 'Sorry, only the user who asked this question can accept the answer as correct.'+
- '</div>');
} else if (data['error'] == 'not_enough_karma') {
var $warning = $('<div class="alert alert-danger alert-dismissable" id="vote_alert" style="max-width: 500px; position:absolute; margin-top: -30px; margin-left: 90px;">'+
'<button type="button" class="close notification_close" data-dismiss="alert" aria-hidden="true">&times;</button>'+
- 'Sorry, at least ' + data['karma'] + ' karma is required to accept your own answers. You can gain karma by answering questions and receiving votes.'+
+ 'Sorry, at least ' + data['karma'] + ' karma is required to accept this answer. You can gain karma by answering questions and receiving votes.'+
'</div>');
}
correct_answer_alert = $link.parent().find("#correct_answer_alert");