Update changelog, CS improvements

This commit is contained in:
Aleksander Machniak
2019-11-18 15:51:36 +01:00
parent feb4ecdf51
commit 8a25ddbf53
3 changed files with 12 additions and 8 deletions

View File

@@ -1790,7 +1790,7 @@ EOF;
public function add_script($script, $position = 'head')
{
if (!isset($this->scripts[$position])) {
$this->scripts[$position] = "\n" . rtrim($script);
$this->scripts[$position] = rtrim($script);
}
else {
$this->scripts[$position] .= "\n" . rtrim($script);
@@ -1852,7 +1852,7 @@ EOF;
// put docready commands into page footer
if (!empty($this->scripts['docready'])) {
$this->add_script('$(function(){ ' . $this->scripts['docready'] . "\n});", 'foot');
$this->add_script("\$(function() {\n" . $this->scripts['docready'] . "\n});", 'foot');
}
$page_header = '';