bug fix netmap help icon show/hide
This commit is contained in:
		| @@ -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; | ||||
|  | ||||
|   | ||||
| @@ -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}); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user