Author: Lars Michelsen <[email protected]>
Date: Wed Jul 9 11:21:04 2014 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Wed Jul 9 11:21:04 2014 +0200
Multisite snapin: Parent maps in tree mode can now be clicked to open the map
---
ChangeLog | 1 +
share/server/core/classes/CoreModMultisite.php | 14 ++++++++------
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0bcfdd5..5f22dd6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
1.8b5
Frontend:
+ * Multisite snapin: Parent maps in tree mode can now be clicked to open the
map
* Add support for secure and httponly cookies (sesscookiehttponly,
sesscookiesecure)
(Thanks to [email protected] for the patch)
* FIX: Fixed links of rotation steps (always linking to last step)
diff --git a/share/server/core/classes/CoreModMultisite.php
b/share/server/core/classes/CoreModMultisite.php
index 1b441af..1625d9a 100644
--- a/share/server/core/classes/CoreModMultisite.php
+++ b/share/server/core/classes/CoreModMultisite.php
@@ -77,6 +77,7 @@ class CoreModMultisite extends CoreModule {
// this copies the foldable_container code provided in Check_MK
htmllib
// assume always open by default
$s .= '<li>';
+ $map_url = cfg('paths',
'htmlbase').'/index.php?mod=Map&act=view&show='.$map['name'];
if(isset($childs[$map['name']])) {
$act = 'onclick="toggle_foldable_container(\'nagvis\',
\''.$map['name'].'\')" '
. 'onmouseover="this.style.cursor=\'pointer\';" '
@@ -84,13 +85,14 @@ class CoreModMultisite extends CoreModule {
$s .= '<img align=absbottom class="treeangle"
id="treeimg.nagvis.'.$map['name'].'" '
. 'src="images/tree_90.png" '.$act.' />';
- $s .= '<b class="treeangle title" class=treeangle
'.$act.'>'.$map['alias'].'</b><br>';
- $s .= '<ul class="treeangle open" style="padding-left:0;"
id="tree.nagvis.'.$map['name'].'">';
- $s .= $this->renderTreeNodes($childs[$map['name']],
$childs);
- $s .= '</ul>';
+ $s .= '<a href="'.$map_url.'" target="main"><b
class="treeangle title" class=treeangle>';
+ $s .= $map['alias'];
+ $s .= '</b></a><br>';
+ $s .= '<ul class="treeangle open" style="padding-left:0;"
id="tree.nagvis.'.$map['name'].'">';
+ $s .= $this->renderTreeNodes($childs[$map['name']], $childs);
+ $s .= '</ul>';
} else {
- $s .= '<a target="main" href="'.cfg('paths',
'htmlbase').'/index.php?mod=Map&act=view'
- . '&show='.$map['name'].'">'.$map['alias'].'</a>';
+ $s .= '<a target="main"
href="'.$map_url.'">'.$map['alias'].'</a>';
}
$s .= '</li>';
}
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins