[FIX] website_forum: make link buttons work again

Since #45352, the dropdown actions "Edit" / "Close" / "Delete" were no
longer working; clicking on them was not submitting the form like it was
supposed to.

closes odoo/odoo#81156

Taskid: 2499623
X-original-commit: 2e7cb0e19a81598f3e52660753b925b3f2216a6d
Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
Kevin Baptiste
2021-12-09 16:14:47 +00:00
parent fa036650c2
commit 7dc796f8d6
2 changed files with 8 additions and 2 deletions
@@ -161,6 +161,12 @@ $bronze: #eea91e;
cursor: pointer;
text-decoration: none !important;
}
.dropdown-menu {
button:focus {
outline: 0;
}
}
}
.website_forum, .o_wforum_profile_tab {
+2 -2
View File
@@ -19,10 +19,10 @@
<form t-attf-method="#{form_method or 'POST'}" t-att-action="url" t-attf-class="#{form_classes} #{not inDropdown and 'btn btn-sm border'}">
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
<div class="input-group">
<a t-attf-class="#{icon and not label and ('fa ' + icon)} #{inDropdown and 'dropdown-item pl-3' or 'btn btn-sm p-0'} #{classes} #{karma and 'karma_required text-muted'}" t-attf-data-karma="#{karma}" t-att-title="title">
<button t-attf-class="#{icon and not label and ('fa ' + icon)} #{inDropdown and 'dropdown-item pl-3' or 'btn btn-sm p-0'} #{classes} #{karma and 'karma_required text-muted'}" t-attf-data-karma="#{karma}" t-att-title="title">
<i t-if="icon and label" t-attf-class="fa fa-fw text-muted #{icon} #{inDropdown and 'mr-1'}"/>
<t t-esc="label"/>
</a>
</button>
<t t-if="flag_validator" t-call="website_forum.show_flag_validator"/>
</div>
</form>