diff options
Diffstat (limited to 'assets/js/src/Popover.js')
-rw-r--r-- | assets/js/src/Popover.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/assets/js/src/Popover.js b/assets/js/src/Popover.js index 705a035a..216d6bf5 100644 --- a/assets/js/src/Popover.js +++ b/assets/js/src/Popover.js @@ -45,10 +45,12 @@ Kanboard.Popover.prototype.isOpen = function() { Kanboard.Popover.prototype.open = function(link) { var self = this; - $.get(link, function(content) { - $("body").prepend('<div id="popover-container"><div id="popover-content">' + content + '</div></div>'); - self.executeOnOpenedListeners(); - }); + if (!self.isOpen()) { + $.get(link, function(content) { + $("body").prepend('<div id="popover-container"><div id="popover-content">' + content + '</div></div>'); + self.executeOnOpenedListeners(); + }); + } }; Kanboard.Popover.prototype.close = function(e) { |