diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-11-05 22:26:58 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-11-05 22:26:58 -0400 |
commit | 3f7840c4db7384eb142f92c33330827b8d7255f9 (patch) | |
tree | 8f0cb3b6e0039eb4914534dd64718ecff6dc4715 /assets/js/src | |
parent | ae5d31e4c285e0ce672de780fdacff953fe71bba (diff) |
Add the possibility to create external tasks
Diffstat (limited to 'assets/js/src')
-rw-r--r-- | assets/js/src/Dropdown.js | 4 | ||||
-rw-r--r-- | assets/js/src/Popover.js | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/assets/js/src/Dropdown.js b/assets/js/src/Dropdown.js index 46652ba0..d97b925e 100644 --- a/assets/js/src/Dropdown.js +++ b/assets/js/src/Dropdown.js @@ -9,6 +9,10 @@ Kanboard.Dropdown.prototype.listen = function() { self.close(); }); + $(document).on('click', '#popover-content', function() { + self.close(); + }); + $(document).on('click', '.dropdown-menu', function(e) { e.preventDefault(); e.stopImmediatePropagation(); diff --git a/assets/js/src/Popover.js b/assets/js/src/Popover.js index e32fce82..4c806278 100644 --- a/assets/js/src/Popover.js +++ b/assets/js/src/Popover.js @@ -137,7 +137,7 @@ Kanboard.Popover.prototype.afterOpen = function() { }); // Autofocus fields (html5 autofocus works only with page onload) - $("[autofocus]").each(function() { + $("#popover-content input[autofocus]").each(function() { $(this).focus(); }); |