Share code for cascading ajax flag
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
ad414347e4
commit
f914fcaba5
@ -97,13 +97,10 @@ class Response
|
||||
$this->_footer = new Footer();
|
||||
|
||||
$this->_isSuccess = true;
|
||||
$this->_isAjax = false;
|
||||
$this->_isDisabled = false;
|
||||
if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) {
|
||||
$this->_isAjax = true;
|
||||
}
|
||||
$this->_header->setAjax($this->_isAjax);
|
||||
$this->_footer->setAjax($this->_isAjax);
|
||||
$this->setAjax(
|
||||
isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true
|
||||
);
|
||||
$this->_CWD = getcwd();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user