Clicking on cancel inside a popover doesn't reload the page

This commit is contained in:
Frederic Guillot
2015-01-30 22:06:10 -05:00
parent 5efb06f6f3
commit 746e1a4e3d
6 changed files with 19 additions and 14 deletions

View File

@@ -35,6 +35,11 @@ var Kanboard = (function() {
$("#popover-content").click(function(e) {
e.stopPropagation();
});
$(".close-popover").click(function(e) {
e.preventDefault();
$('#popover-container').remove();
});
if (callback) {
callback();