diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-05-29 17:34:43 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-05-29 17:34:43 +0200 |
| commit | f36e6917bd73a56dc0c7468b4849920df4088154 (patch) | |
| tree | b63d02ae3e5ffc0815de009407363e0cf906f547 /addons/website_forum/static/src | |
| parent | bc0173c2d58ac26d80cb2f483a95c0c13b047dab (diff) | |
| parent | 37eed7c509fb5846c89ef37046df4b3cab299719 (diff) | |
[MERGE] forward port branch saas-11.3 up to 37eed7c509f
Diffstat (limited to 'addons/website_forum/static/src')
| -rw-r--r-- | addons/website_forum/static/src/js/website_forum.js | 9 | ||||
| -rw-r--r-- | addons/website_forum/static/src/scss/website_forum.scss | 3 |
2 files changed, 6 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 255ba20b87e..96cc4946b64 100644 --- a/addons/website_forum/static/src/js/website_forum.js +++ b/addons/website_forum/static/src/js/website_forum.js @@ -25,13 +25,14 @@ odoo.define('website_forum.website_forum', function (require) { if ($('a[href*="/login"]').length) { msg = _t('Sorry you must be logged in to perform this action'); } - var $warning = $('<div class="alert alert-danger alert-dismissable oe_forum_alert" id="karma_alert">'+ + var $warning = $('<div class="alert alert-danger alert-dismissable oe_forum_alert mt8" id="karma_alert">'+ '<button type="button" class="close notification_close" data-dismiss="alert" aria-hidden="true">×</button>'+ msg + '</div>'); - var vote_alert = $(ev.currentTarget).parent().find("#vote_alert"); - if (vote_alert.length === 0) { - $(ev.currentTarget).parent().append($warning); + var $voteAlert = $('#karma_alert'); + if ($voteAlert.length) { + $voteAlert.remove(); } + $(ev.currentTarget).after($warning); } }); diff --git a/addons/website_forum/static/src/scss/website_forum.scss b/addons/website_forum/static/src/scss/website_forum.scss index fde4b88d78c..b4fb02792c2 100644 --- a/addons/website_forum/static/src/scss/website_forum.scss +++ b/addons/website_forum/static/src/scss/website_forum.scss @@ -130,6 +130,7 @@ a.no-decoration { .close.comment_delete { font-size: 16px; + float: none; } .country_flag { @@ -154,8 +155,6 @@ a.no-decoration { .oe_forum_alert { position: absolute; - margin-top: -30px; - margin-left: 90px; width: 300px; z-index: 9999; } |
