[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:
@@ -161,6 +161,12 @@ $bronze: #eea91e;
|
||||
cursor: pointer;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.dropdown-menu {
|
||||
button:focus {
|
||||
outline: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.website_forum, .o_wforum_profile_tab {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user