@@ -43,7 +43,7 @@ | |||
</ul> | |||
<form class="navbar-form navbar-right" style="display: none;"> | |||
<div class="btn-group"> | |||
<a href="#" class="btn btn-default" role="button" data-toggle="button" id="refresh"><i class="glyphicon glyphicon-refresh glyphicon-spin"></i> Refresh</a> | |||
<a href="#" class="btn btn-default" role="button" data-toggle="button" id="refresh" style="display: none;"><i class="glyphicon glyphicon-refresh glyphicon-spin"></i> Refresh</a> | |||
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown" id="autoRefresh"> | |||
<span id="countdown">--:--</span> <span class="caret"></span> | |||
</button> |
@@ -125,6 +125,12 @@ function ($, D3pie, visibility, NProgress, stickyTabs, tab_stat, tab_graph, tab_ | |||
}); | |||
} | |||
if (["#scan_nav", "#selectors_nav", "#disconnect"].indexOf(tab_id) !== -1) { | |||
$("#refresh").hide(); | |||
} else { | |||
$("#refresh").show(); | |||
} | |||
switch (tab_id) { | |||
case "#status_nav": | |||
(function () { |