Dashlet: Use `showCompact` instead of `view=compact`
Allows dashlets to use their own value for parameter `view`
This commit is contained in:
parent
cc4d133632
commit
c2f380cf9b
|
@ -249,7 +249,7 @@ EOD;
|
|||
}
|
||||
|
||||
$url = $this->getUrl();
|
||||
$url->setParam('view', 'compact');
|
||||
$url->setParam('showCompact', true);
|
||||
$iframeUrl = clone $url;
|
||||
$iframeUrl->setParam('isIframe');
|
||||
|
||||
|
@ -266,7 +266,7 @@ EOD;
|
|||
$replaceTokens = array(
|
||||
$url,
|
||||
$iframeUrl,
|
||||
$url->getUrlWithout(array('view', 'limit')),
|
||||
$url->getUrlWithout(array('showCompact', 'limit')),
|
||||
sprintf($view->translate('Show %s', 'dashboard.dashlet.tooltip'), $view->escape($this->getTitle())),
|
||||
$view->escape($this->getTitle()),
|
||||
$view->translate('Dashlet') . ': ',
|
||||
|
|
Loading…
Reference in New Issue