mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-05-28 04:34:08 -04:00
Renderer, js: redirect links from dashboard tiles
This commit is contained in:
parent
bf0b92e1d5
commit
8b6ab3d2fe
2 changed files with 10 additions and 2 deletions
|
|
@ -215,7 +215,8 @@ abstract class Renderer extends Html
|
|||
'deletenode',
|
||||
'deleteparent',
|
||||
'editnode',
|
||||
'simulationnode'
|
||||
'simulationnode',
|
||||
'view'
|
||||
));
|
||||
$this->setBaseUrl($url);
|
||||
return $this;
|
||||
|
|
@ -227,7 +228,7 @@ abstract class Renderer extends Html
|
|||
*/
|
||||
public function setBaseUrl(Url $url)
|
||||
{
|
||||
$this->baseUrl = $url->without(array('node', 'path'));
|
||||
$this->baseUrl = $url->without(array('node', 'path', 'view'));
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@
|
|||
this.fixOpenedBps($container);
|
||||
this.highlightFormErrors($container);
|
||||
this.hideInactiveFormDescriptions($container);
|
||||
this.fixTileLinksOnDashboard($container);
|
||||
},
|
||||
|
||||
processTitleClick: function (event) {
|
||||
|
|
@ -152,6 +153,12 @@
|
|||
});*/
|
||||
},
|
||||
|
||||
fixTileLinksOnDashboard: function($container) {
|
||||
if ($container.closest('div.dashboard')) {
|
||||
$container.find('div.tiles').data('baseTarget', '_next');
|
||||
}
|
||||
},
|
||||
|
||||
fixFullscreen: function($container) {
|
||||
var $controls = $container.find('div.controls');
|
||||
var $layout = $('#layout');
|
||||
|
|
|
|||
Loading…
Reference in a new issue