mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 20:46:24 +00:00
Making JsHelper use its request object methods.
This commit is contained in:
parent
4453c9122d
commit
e6a743b163
1 changed files with 2 additions and 1 deletions
|
@ -199,7 +199,8 @@ class JsHelper extends AppHelper {
|
||||||
* scripts null will be returned.
|
* scripts null will be returned.
|
||||||
*/
|
*/
|
||||||
public function writeBuffer($options = array()) {
|
public function writeBuffer($options = array()) {
|
||||||
$domReady = isset($this->params['isAjax']) ? !$this->params['isAjax'] : true;
|
$domReady = $this->request->is('ajax');
|
||||||
|
// $domReady = isset($this->params['isAjax']) ? !$this->params['isAjax'] : true;
|
||||||
$defaults = array(
|
$defaults = array(
|
||||||
'onDomReady' => $domReady, 'inline' => true,
|
'onDomReady' => $domReady, 'inline' => true,
|
||||||
'cache' => false, 'clear' => true, 'safe' => true
|
'cache' => false, 'clear' => true, 'safe' => true
|
||||||
|
|
Loading…
Add table
Reference in a new issue