mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-23 16:19:42 -05:00
parent
33434590f0
commit
88e7a1ad18
2 changed files with 18 additions and 7 deletions
|
|
@ -298,13 +298,24 @@ abstract class Node
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$title = preg_replace('~(</a>)~', implode('', $this->getIcons($view)) . '$1', $this->renderLink($view));
|
$title = preg_replace(
|
||||||
|
'~(</a>)~',
|
||||||
|
implode('', $this->getIcons($view)) . '$1',
|
||||||
|
$this->renderLink($view)
|
||||||
|
);
|
||||||
|
|
||||||
if ($this->hasInfoUrl()) {
|
if ($this->hasInfoUrl()) {
|
||||||
$title = ' <a href="' . $this->getInfoUrl() . '" title="'
|
$url = $this->getInfoUrl();
|
||||||
. mt('businessprocess', 'More information') . ': ' . $this->getInfoUrl()
|
$target = preg_match('~^https?://~', $url) ? ' target="_blank"' : '';
|
||||||
. '" style="float: right">'
|
$title = sprintf(
|
||||||
. $view->icon('help')
|
' <a href="%s" %stitle="%s: %s" style="float: right">%s</a>%s',
|
||||||
. '</a>' . $title;
|
$url,
|
||||||
|
$target,
|
||||||
|
mt('businessprocess', 'More information'),
|
||||||
|
$url,
|
||||||
|
$view->icon('help'),
|
||||||
|
$title
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$html .= sprintf(
|
$html .= sprintf(
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
this.module.on('beforerender', this.rememberOpenedBps);
|
this.module.on('beforerender', this.rememberOpenedBps);
|
||||||
this.module.on('rendered', this.fixOpenedBps);
|
this.module.on('rendered', this.fixOpenedBps);
|
||||||
|
|
||||||
this.module.on('click', 'table.bp.process > tbody > tr:first-child > td > a:first-child', this.processTitleClick);
|
this.module.on('click', 'table.bp.process > tbody > tr:first-child > td > a:last-child', this.processTitleClick);
|
||||||
this.module.on('click', 'table.bp > tbody > tr:first-child > th', this.processOperatorClick);
|
this.module.on('click', 'table.bp > tbody > tr:first-child > th', this.processOperatorClick);
|
||||||
|
|
||||||
this.module.on('mouseenter', 'table.bp > tbody > tr > td > a', this.procMouseOver);
|
this.module.on('mouseenter', 'table.bp > tbody > tr > td > a', this.procMouseOver);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue