From 59f4604eb6cec476727d8626ef7b0ee6282d1846 Mon Sep 17 00:00:00 2001 From: zhulin3141 <1141166087@qq.com> Date: Fri, 7 Nov 2014 16:34:23 +0800 Subject: [PATCH] fix conflict with bootstrap tab --- admin/write-js.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/write-js.php b/admin/write-js.php index 3e47a703..876d9a80 100644 --- a/admin/write-js.php +++ b/admin/write-js.php @@ -216,7 +216,7 @@ $(document).ready(function() { $('#edit-secondary .typecho-option-tabs li').click(function() { $('#edit-secondary .typecho-option-tabs li').removeClass('active'); $(this).addClass('active'); - $('.tab-content').addClass('hidden'); + $(this).parents('#edit-secondary').find('.tab-content').addClass('hidden'); var selected_tab = $(this).find('a').attr('href'), selected_el = $(selected_tab).removeClass('hidden');