mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-22 15:56:58 +01:00
Update changelog, CS improvements
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user