mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +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.
|
||||
*/
|
||||
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(
|
||||
'onDomReady' => $domReady, 'inline' => true,
|
||||
'cache' => false, 'clear' => true, 'safe' => true
|
||||
|
|
Loading…
Add table
Reference in a new issue