Skip to content
Snippets Groups Projects
Commit a0f45bab authored by qsm-odoo's avatar qsm-odoo
Browse files

[FIX] website_blog: restore blog option UI


The label of some buttons is updated on-the-fly, and the code which
does that was actually altering the structure of the button widgets
instead of just the labels' text. This code should be made more robust
in master.

closes odoo/odoo#54324

X-original-commit: 5eb25c482eeaf68e30fd9f5b2fbe889f9b53c954
Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent cc8c036f
No related branches found
No related tags found
No related merge requests found
......@@ -120,9 +120,9 @@ options.registry.CoverProperties.include({
this._coverFullOriginalLabel = this._coverFullOriginalLabel || $coverFull.text();
this._coverMidOriginalLabel = this._coverMidOriginalLabel || $coverMid.text();
this._coverAutoOriginalLabel = this._coverAutoOriginalLabel || $coverAuto.text();
$coverFull.text(isRegularCover ? _t("Large") : this._coverFullOriginalLabel);
$coverMid.text(isRegularCover ? _t("Medium") : this._coverMidOriginalLabel);
$coverAuto.text(isRegularCover ? _t("Tiny") : this._coverAutoOriginalLabel);
$coverFull.children('div').text(isRegularCover ? _t("Large") : this._coverFullOriginalLabel);
$coverMid.children('div').text(isRegularCover ? _t("Medium") : this._coverMidOriginalLabel);
$coverAuto.children('div').text(isRegularCover ? _t("Tiny") : this._coverAutoOriginalLabel);
},
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment