Simplify jQuery DOM ready at the footer (#6825)

https://api.jquery.com/ready/#entry-longdesc

Signed-off-by: Jack Cherng <jfcherng@gmail.com>
pull/6828/head
Jack Cherng 5 years ago committed by Aleksander Machniak
parent 0869f02b7c
commit e449f30eff

@ -1852,7 +1852,7 @@ EOF;
// put docready commands into page footer
if (!empty($this->scripts['docready'])) {
$this->add_script('$(document).ready(function(){ ' . $this->scripts['docready'] . "\n});", 'foot');
$this->add_script('$(function(){ ' . $this->scripts['docready'] . "\n});", 'foot');
}
// replace specialchars in content

Loading…
Cancel
Save