bug fix netmap help icon show/hide

This commit is contained in:
Oliver Gorwits
2012-12-09 18:32:07 +00:00
parent b7c1146e5f
commit a046fabe9d
2 changed files with 9 additions and 4 deletions

View File

@@ -1,8 +1,5 @@
<script>
// show our help icon
d3.select('#netmap_help_img').style('display', 'inline');
var winHeight = window.innerHeight;
var winWidth = window.innerWidth;

View File

@@ -2,7 +2,7 @@
// ajax content is loaded
var path = 'device';
function inner_view_processing() {
function inner_view_processing(tab) {
// VLANs column list collapser trigger
// it's a bit of a faff because we can't easily use Bootstrap's collapser
$('.nd_collapse_vlans').toggle(function() {
@@ -72,6 +72,14 @@
}
});
// show or hide netmap help button
if (tab == 'netmap') {
$('#netmap_help_img').show();
}
else {
$('#netmap_help_img').hide();
}
// activate tooltips and popovers
$("[rel=tooltip]").tooltip({live: true});
$("[rel=popover]").popover({live: true});