diff --git a/library/Businessprocess/Node.php b/library/Businessprocess/Node.php index 8973141..0366b9c 100644 --- a/library/Businessprocess/Node.php +++ b/library/Businessprocess/Node.php @@ -298,13 +298,24 @@ abstract class Node } - $title = preg_replace('~()~', implode('', $this->getIcons($view)) . '$1', $this->renderLink($view)); + $title = preg_replace( + '~()~', + implode('', $this->getIcons($view)) . '$1', + $this->renderLink($view) + ); + if ($this->hasInfoUrl()) { - $title = ' ' - . $view->icon('help') - . '' . $title; + $url = $this->getInfoUrl(); + $target = preg_match('~^https?://~', $url) ? ' target="_blank"' : ''; + $title = sprintf( + ' %s%s', + $url, + $target, + mt('businessprocess', 'More information'), + $url, + $view->icon('help'), + $title + ); } $html .= sprintf( diff --git a/public/js/module.js b/public/js/module.js index 352733d..8dfa2ec 100644 --- a/public/js/module.js +++ b/public/js/module.js @@ -24,7 +24,7 @@ this.module.on('beforerender', this.rememberOpenedBps); 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('mouseenter', 'table.bp > tbody > tr > td > a', this.procMouseOver);