summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@openerp.com>2014-12-02 14:07:51 +0100
committerFabien Pinckaers <fp@openerp.com>2014-12-02 14:07:51 +0100
commitde730aebcfc223b945dca8d344c3c2b885df59e8 (patch)
treee06dc1652f45b84e4e4a7afa38e50c5130dc92af
parent84f467a806b43ce47b37523d5569aff03ad53ab3 (diff)
[IMP] karma retag checks
-rw-r--r--addons/website_forum/static/src/js/website_forum.js1
-rw-r--r--addons/website_forum/views/website_forum.xml3
2 files changed, 3 insertions, 1 deletions
diff --git a/addons/website_forum/static/src/js/website_forum.js b/addons/website_forum/static/src/js/website_forum.js
index fd13a6e5814..b30accc4516 100644
--- a/addons/website_forum/static/src/js/website_forum.js
+++ b/addons/website_forum/static/src/js/website_forum.js
@@ -164,7 +164,6 @@
isNew: true,
};
}
-
}
},
formatResult: function(term) {
diff --git a/addons/website_forum/views/website_forum.xml b/addons/website_forum/views/website_forum.xml
index dedeb59234b..badbfe95a45 100644
--- a/addons/website_forum/views/website_forum.xml
+++ b/addons/website_forum/views/website_forum.xml
@@ -381,6 +381,7 @@
<div class="form-group">
<label class="col-sm-2 control-label" for="post_tags">Tags</label>
<div class="col-sm-8">
+ <input type="hidden" name="karma_retag" t-attf-value="#{forum.karma_retag}" id="karma_retag"/>
<input type="text" name="post_tags" readonly="True" class="form-control js_select2"/>
</div>
</div>
@@ -408,6 +409,7 @@
<t t-esc="question_content"/>
</textarea>
<br/>
+ <input type="hidden" name="karma_retag" t-attf-value="#{forum.karma_retag}" id="karma_retag"/>
<input type="text" name="post_tags" placeholder="Tags" class="form-control js_select2"/>
<br/><br/>
<button class="btn btn-primary">Post Your Topic</button>
@@ -469,6 +471,7 @@
</textarea>
<div t-if="not is_answer">
<br/>
+ <input type="hidden" name="karma_retag" t-attf-value="#{forum.karma_retag}" id="karma_retag"/>
<input type="text" name="post_tag" class="form-control col-md-9 js_select2" placeholder="Tags" t-attf-value="#{tags}"/>
<br/>
</div>