summaryrefslogtreecommitdiffstats
path: root/client/lib/popup.js
diff options
context:
space:
mode:
authorRomulus Urakagi Tsai <urakagi@gmail.com>2019-12-24 08:57:34 +0000
committerRomulus Urakagi Tsai <urakagi@gmail.com>2019-12-24 08:57:34 +0000
commit93337c20f83146bb702a5af8cf9cdb37f4c53443 (patch)
tree8d40fe3b4fabd0bd2f813620f10ab56ba91f6816 /client/lib/popup.js
parent6cdd464f54fca423876a27ec2a4269ae5841cdb0 (diff)
downloadwekan-93337c20f83146bb702a5af8cf9cdb37f4c53443.tar.gz
wekan-93337c20f83146bb702a5af8cf9cdb37f4c53443.tar.bz2
wekan-93337c20f83146bb702a5af8cf9cdb37f4c53443.zip
Change upload routine, add upload popup
Diffstat (limited to 'client/lib/popup.js')
-rw-r--r--client/lib/popup.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/lib/popup.js b/client/lib/popup.js
index 8095fbd2..cae22659 100644
--- a/client/lib/popup.js
+++ b/client/lib/popup.js
@@ -49,7 +49,7 @@ window.Popup = new (class {
// has one. This allows us to position a sub-popup exactly at the same
// position than its parent.
let openerElement;
- if (clickFromPopup(evt)) {
+ if (clickFromPopup(evt) && self._getTopStack()) {
openerElement = self._getTopStack().openerElement;
} else {
self._stack = [];