From 0c45cf1ee7318120e96dc2b7bfa69c48366e9293 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 19 Feb 2014 14:17:38 -0500 Subject: [PATCH] FIX: Allow closing the category dropdown when clicking on the same category --- .../discourse/components/categorydrop_component.js | 4 ---- app/assets/javascripts/discourse/lib/html.js | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/assets/javascripts/discourse/components/categorydrop_component.js b/app/assets/javascripts/discourse/components/categorydrop_component.js index 5aa2e354b4e..f3e17b55711 100644 --- a/app/assets/javascripts/discourse/components/categorydrop_component.js +++ b/app/assets/javascripts/discourse/components/categorydrop_component.js @@ -69,10 +69,6 @@ Discourse.CategoryDropComponent = Ember.Component.extend({ } }, - categoryChanged: function() { - this.close(); - }.observes('category', 'parentCategory'), - close: function() { $('html').off('click.category-drop'); this.$('a[data-drop-close]').off('click.category-drop'); diff --git a/app/assets/javascripts/discourse/lib/html.js b/app/assets/javascripts/discourse/lib/html.js index 5269b6234c2..f3b21f0ef48 100644 --- a/app/assets/javascripts/discourse/lib/html.js +++ b/app/assets/javascripts/discourse/lib/html.js @@ -50,7 +50,7 @@ Discourse.HTML = { restricted = Em.get(category, 'read_restricted'), html = "