From b515c7f050be1810329f0683e63ac8fa5bb19176 Mon Sep 17 00:00:00 2001 From: Matthias Mees Date: Wed, 4 Jun 2014 20:29:43 +0200 Subject: [PATCH] A better solution for the clickable categories list. --- templates/2k11/admin/serendipity_editor.js.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/2k11/admin/serendipity_editor.js.tpl b/templates/2k11/admin/serendipity_editor.js.tpl index dd8bb8a9..de99e43b 100644 --- a/templates/2k11/admin/serendipity_editor.js.tpl +++ b/templates/2k11/admin/serendipity_editor.js.tpl @@ -1073,7 +1073,7 @@ $(function() { // Show category selector {if $use_popups} if($('#serendipityEntry').length > 0) { - $('#select_category, #category_list h3, #category_list li').click(function(e) { + $('#select_category').click(function(e) { $('#edit_entry_category').toggleClass('mfp-hide'); $('#toggle_metadata').click(); }); @@ -1092,7 +1092,7 @@ $(function() { } }); - $('#category_list').click(function(e) { + $('#category_list').on('click', 'h3, li', function() { $('#select_category').trigger('click'); }); }