Do not use preventDefault() with .close-popover when there is no popover opened
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -21,11 +21,14 @@ Popover.prototype.open = function(link) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Popover.prototype.close = function(e) {
|
Popover.prototype.close = function(e) {
|
||||||
if (e) {
|
if (this.isOpen()) {
|
||||||
e.preventDefault();
|
|
||||||
}
|
|
||||||
|
|
||||||
$('#popover-container').remove();
|
if (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
}
|
||||||
|
|
||||||
|
$('#popover-container').remove();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Popover.prototype.onClick = function(e) {
|
Popover.prototype.onClick = function(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user