dashboard/widgets, fix tab behaviour in ipsec widget, since d2a8576375 broke it.

This commit is contained in:
Ad Schellevis 2018-01-28 12:19:17 +01:00
parent e8b7818df2
commit d2d9a0dfbd

View File

@ -76,8 +76,8 @@ if (isset($config['ipsec']['phase1'])) {
if (isset($config['ipsec']['phase2'])) {
?>
<script>
$(window).load(function() {
$(".ipsec-tab").click(function(){
$(document).ready(function() {
$(".ipsec-tab").unbind('click').click(function(){
$(".ipsec-tab").css('background-color', '#777777');
$(".ipsec-tab").css('color', 'white');
$(this).css('background-color', '#EEEEEE');