[IMP] karma retag checks
authorFabien Pinckaers <fp@openerp.com>
Tue, 2 Dec 2014 13:07:51 +0000 (14:07 +0100)
committerFabien Pinckaers <fp@openerp.com>
Tue, 2 Dec 2014 13:07:51 +0000 (14:07 +0100)
addons/website_forum/static/src/js/website_forum.js
addons/website_forum/views/website_forum.xml

index fd13a6e..b30accc 100644 (file)
                             isNew: true,
                         };
                     }
-                    
                 }
             },
             formatResult: function(term) {
index dedeb59..badbfe9 100644 (file)
             <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>
                 <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>
             </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>