From 2e81f0cf95c7c799b1d1b6d534064cd7ac9dbab5 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 15 Dec 2015 14:48:37 +0800 Subject: [PATCH] fix nav active bug --- templates/foot_script.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/foot_script.html b/templates/foot_script.html index 0f7001985..7d0890e20 100644 --- a/templates/foot_script.html +++ b/templates/foot_script.html @@ -34,8 +34,8 @@ if (s1 == ''){ $('#index').addClass('active') } else { - //$("#"+s1).addClass('active'); - //$('#'+s1+' .'+s2).addClass('active'); + $("#"+s1).addClass('active'); + $('#'+s1+' .'+s2).addClass('active'); console.log(s1) }