Avoid dropdown panels to close on click

This commit is contained in:
benweet 2013-07-07 18:12:25 +01:00
parent 22d151b6ef
commit 77f3324873
2 changed files with 5 additions and 3 deletions

View File

@ -551,6 +551,11 @@ define([
e.stopPropagation(); e.stopPropagation();
}); });
// Avoid dropdown panels to close on click
$("div.dropdown-menu").click(function(e) {
e.stopPropagation();
});
}); });
return core; return core;

View File

@ -28,9 +28,6 @@ define([
var lineElement = $(_.template(buttonShareLocationHTML, { var lineElement = $(_.template(buttonShareLocationHTML, {
link: attributes.sharingLink link: attributes.sharingLink
})); }));
lineElement.click(function(event) {
event.stopPropagation();
});
linkList.append(lineElement); linkList.append(lineElement);
$("#link-container .no-link").hide(); $("#link-container .no-link").hide();
} }