Render 'inline' if xhr request, missing use added

This commit is contained in:
Thomas Gelf 2014-02-18 18:42:06 +00:00
parent 139461c6d5
commit b7de09f6ba

View File

@ -29,13 +29,14 @@
namespace Icinga\Web\Controller; namespace Icinga\Web\Controller;
use \Exception; use Exception;
use \Zend_Controller_Action; use Zend_Controller_Action;
use \Zend_Controller_Request_Abstract; use Zend_Controller_Request_Abstract;
use \Zend_Controller_Response_Abstract; use Zend_Controller_Response_Abstract;
use \Zend_Controller_Action_HelperBroker; use Zend_Controller_Action_HelperBroker;
use Icinga\Authentication\Manager as AuthManager; use Icinga\Authentication\Manager as AuthManager;
use Icinga\Application\Benchmark; use Icinga\Application\Benchmark;
use Icinga\Application\Config;
use Icinga\Util\Translator; use Icinga\Util\Translator;
use Icinga\Web\Widget\Tabs; use Icinga\Web\Widget\Tabs;
use Icinga\Web\Url; use Icinga\Web\Url;
@ -264,6 +265,7 @@ class ActionController extends Zend_Controller_Action
if ($target !== 'inline') { if ($target !== 'inline') {
$target = ($this->getParam('view') === 'compact') ? 'inline' : 'body'; $target = ($this->getParam('view') === 'compact') ? 'inline' : 'body';
} }
$target = 'inline';
$this->_helper->layout()->setLayout($target); $this->_helper->layout()->setLayout($target);
} }
if ($user = $this->getRequest()->getUser()) { if ($user = $this->getRequest()->getUser()) {