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