Permalink
Browse files

Hover menu childs (e.g. services in host object hover) can now be lef…

…t unsorted (keep original sorting)
  • Loading branch information...
LarsMichelsen committed Sep 4, 2017
1 parent bb2a592 commit 3f82036a317ac5bc568f173dfa66197beb9df496
View
@@ -1,4 +1,9 @@
1.9.4
Core:
* List of hover menu childs (e.g. services in host object hover) can now be
left unsorted (keep original sorting). This is useful for aggregation objects
where the single elements have a defined order and should not be sorted by state
(Configure this per object by adding the attribute hover_childs_sort=k).
1.9.3
Core:
@@ -390,7 +390,7 @@ <h2>Description of the sections in detail</h2>
<td> hoverchildsshow </td><td> 1 </td><td>Enable/Disable the child objects in hover menu</td>
</tr>
<tr>
<td> hoverchildssort </td><td> a </td><td>Sort method of the child objects (available: "s": state, "a": alphabet )</td>
<td> hoverchildssort </td><td> a </td><td>Sort method of the child objects (available: "s": state, "a": alphabet, "k": keep original order)</td>
</tr>
<tr>
<td> hoverdelay </td><td> 0 </td><td>Delay of hover menu appearance in seconds</td>
@@ -327,6 +327,9 @@ public function getSortedObjectMembers() {
// Order by State
usort($aTmpMembers, Array("NagVisObject", "sortObjectsByState"));
break;
case 'k':
// Keep original order (as provided by backend)
break;
case 'a':
default:
// Order alhpabetical
@@ -156,6 +156,7 @@ function listHoverChildSorters() {
return Array(
'a' => l('Alphabetically'),
's' => l('State'),
'k' => l('Keep original order'),
);
}

0 comments on commit 3f82036

Please sign in to comment.