From 77f332487373bcd92887866cff99bf067316cb71 Mon Sep 17 00:00:00 2001 From: benweet Date: Sun, 7 Jul 2013 18:12:25 +0100 Subject: [PATCH] Avoid dropdown panels to close on click --- js/core.js | 5 +++++ js/extensions/buttonShare.js | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/js/core.js b/js/core.js index 4a3472b4..338ce194 100644 --- a/js/core.js +++ b/js/core.js @@ -550,6 +550,11 @@ define([ }); e.stopPropagation(); }); + + // Avoid dropdown panels to close on click + $("div.dropdown-menu").click(function(e) { + e.stopPropagation(); + }); }); diff --git a/js/extensions/buttonShare.js b/js/extensions/buttonShare.js index 811834c9..a1b1f210 100644 --- a/js/extensions/buttonShare.js +++ b/js/extensions/buttonShare.js @@ -28,9 +28,6 @@ define([ var lineElement = $(_.template(buttonShareLocationHTML, { link: attributes.sharingLink })); - lineElement.click(function(event) { - event.stopPropagation(); - }); linkList.append(lineElement); $("#link-container .no-link").hide(); }