Fixed form submission with Meta+Enter keyboard shortcut

This commit is contained in:
Frederic Guillot
2016-04-13 18:24:36 -04:00
parent 2a574c408e
commit ab02a9a162
4 changed files with 19 additions and 6 deletions

View File

@@ -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) {