Permalink
Browse files

On demand automaps: Hostgroup filter in header menu is now a searchab…

…le dropdown field
  • Loading branch information...
LarsMichelsen committed Oct 25, 2017
1 parent 5154494 commit 7bb095f5277aea6b1ea1e1c8ee9a700bab99299c
View
@@ -6,6 +6,7 @@ Core:
(Configure this per object by adding the attribute hover_childs_sort=k).
Frontend:
* On demand automaps: Hostgroup filter in header menu is now a searchable dropdown field
* FIX: Fixed moving textbox objects in IE
1.9.3
@@ -609,7 +609,7 @@ div#popupWindow h1 {
text-decoration: none;
}
.header ul li span {
.header ul li > span {
margin:0;
height:31px;
line-height:32px;

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,4 +1,7 @@
<script type="text/javascript" src="{$pathTemplates}default.header.js"></script>
<script type="text/javascript" src="{$pathTemplates}jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="{$pathTemplates}select2.min.js"></script>
<link href="{$pathTemplates}select2.min.css" rel="stylesheet" />
<script type="text/javascript">
function filter_group(field) \{
var grp = field.value;
@@ -15,12 +18,16 @@
<li class="toggle"><a href="#" onclick="toggleHeader(true)" title="Hide header menu">&lt;</a></li>
<li><span>Filter:</span></li>
<li><span>
<select onchange="filter_group(this)">
<select class="hostgroup-filter" onchange="filter_group(this)">
{foreach $hostgroups hostgroup}<option {if $filter_group == $hostgroup.name1}selected {/if}value="{$hostgroup.name1}">{$hostgroup.name2}</option>{/foreach}
</select>
</span></li>
</li>
</ul>
</div>
<div id="headerspacer"></div>
<script type="text/javascript">addDOMLoadEvent(function()\{headerDraw();});</script>
<script type="text/javascript">
addDOMLoadEvent(function()\{headerDraw();});
$(document).ready(function() {
$('.hostgroup-filter').select2();
});
</script>

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit 7bb095f

Please sign in to comment.