|
@@ 371-377 (lines=7) @@
|
| 368 |
|
*/ |
| 369 |
|
public function finalize() { |
| 370 |
|
if(!UResponse::isJSON()){ |
| 371 |
|
if(!URequest::isAjax()){ |
| 372 |
|
if(isset($this->_controllerInstance)){ |
| 373 |
|
call_user_func_array(array($this->_controllerInstance, 'parent::finalize'), []); |
| 374 |
|
}else{ |
| 375 |
|
parent::finalize(); |
| 376 |
|
} |
| 377 |
|
} |
| 378 |
|
$this->jquery->execAtLast("if($('#_userInfo').length){\$('#_userInfo').html(".preg_replace("/$\R?^/m", "",Javascript::prep_element($this->info())).");}"); |
| 379 |
|
echo $this->jquery->compile(); |
| 380 |
|
} |
|
@@ 388-394 (lines=7) @@
|
| 385 |
|
* @see \Ubiquity\controllers\ControllerBase::initialize() |
| 386 |
|
*/ |
| 387 |
|
public function initialize() { |
| 388 |
|
if(!URequest::isAjax()){ |
| 389 |
|
if(isset($this->_controllerInstance)){ |
| 390 |
|
call_user_func_array(array($this->_controllerInstance, 'parent::initialize'), []); |
| 391 |
|
}else{ |
| 392 |
|
parent::initialize(); |
| 393 |
|
} |
| 394 |
|
} |
| 395 |
|
} |
| 396 |
|
|
| 397 |
|
/** |