2021-10-30 13:31:51 +00:00
|
|
|
/*global $, dotclear, jsToolBar */
|
|
|
|
'use strict';
|
2021-09-10 19:06:49 +00:00
|
|
|
|
2021-10-30 13:31:51 +00:00
|
|
|
$(() => {
|
2021-09-10 19:06:49 +00:00
|
|
|
$('#post-wtext-form h4').toggleWithLegend(
|
2021-10-30 13:31:51 +00:00
|
|
|
$('#post-wtext-form').children().not('h4'),
|
|
|
|
{
|
|
|
|
user_pref:'dcx_pwt_form',
|
|
|
|
legend_click:true
|
|
|
|
}
|
2021-09-10 19:06:49 +00:00
|
|
|
);
|
2021-10-30 13:31:51 +00:00
|
|
|
if ($.isFunction(jsToolBar)) {
|
|
|
|
$('#post_wtext').each(function() {
|
|
|
|
var tbWidgetText = new jsToolBar(this);
|
|
|
|
tbWidgetText.draw('xhtml');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|