Commit 5fe4035a authored by Jonny Bradley's avatar Jonny Bradley

[FIX] toolbars: JS include for pickers (smileys etc) was not getting loaded if...

[FIX] toolbars: JS include for pickers (smileys etc) was not getting loaded if there were only pickers and no dialog type tools such as search or table.
parent 1503cc5f
......@@ -1068,6 +1068,7 @@ class ToolbarPicker extends Toolbar
static $pickerAdded = false;
if ( ! $pickerAdded ) {
TikiLib::lib('header')->add_jsfile('lib/jquery_tiki/tiki-toolbars.js');
$pickerAdded = true;
}
}
......@@ -1267,7 +1268,7 @@ class ToolbarDialog extends Toolbar
return 'displayDialog( this, ' . $this->index . ', \'' . $areaId . '\')';
}
static private function setupJs()
static function setupJs()
{
TikiLib::lib('header')->add_jsfile('lib/jquery_tiki/tiki-toolbars.js');
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment