master
Jean-Christian Paul Denis 2023-04-25 15:05:47 +02:00
parent 19dba282e3
commit c45d7f40ec
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 15 additions and 13 deletions

View File

@ -2,17 +2,19 @@
'use strict';
$(() => {
$('#post-wtext-form h4').toggleWithLegend(
$('#post-wtext-form').children().not('h4'),
{
user_pref:'dcx_pwt_form',
legend_click:true
}
);
if ($.isFunction(jsToolBar)) {
$('#post_wtext').each(function() {
var tbWidgetText = new jsToolBar(this);
tbWidgetText.draw('xhtml');
});
}
$('#post-wtext-form h4').toggleWithLegend(
$('#post-wtext-form').children().not('h4'),
{
user_pref:'dcx_pwt_form',
legend_click:true
}
);
$('#post_wtext').each(function () {
if (typeof jsToolBar === 'function') {
const tbWidgetText = new jsToolBar(this);
tbWidgetText.context = 'pwt';
tbWidgetText.draw('xhtml');
}
});
});