summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorHendrik Leppelsack <hendrik@leppelsack.de>2015-07-08 15:49:19 +0200
committerHendrik Leppelsack <hendrik@leppelsack.de>2015-07-08 22:58:08 +0200
commit4d289dc5903164b2731d254f7e28315d7b3cbcda (patch)
tree9639d703d1c15e1c9385d8913ba7ea00f4c17be0 /core/js
parente72261463999da82ffa1a0952e9dd6b66153870d (diff)
downloadnextcloud-server-4d289dc5903164b2731d254f7e28315d7b3cbcda.tar.gz
nextcloud-server-4d289dc5903164b2731d254f7e28315d7b3cbcda.zip
fix browser compatibility issue for element.closest
Diffstat (limited to 'core/js')
-rw-r--r--core/js/apps.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/apps.js b/core/js/apps.js
index ecefa48caa1..71170bbc23a 100644
--- a/core/js/apps.js
+++ b/core/js/apps.js
@@ -58,7 +58,7 @@
if (!area.is(':animated')) {
// button toggles the area
- if (button === event.target.closest('[data-apps-slide-toggle]')) {
+ if ($(button).is($(event.target).closest('[data-apps-slide-toggle]'))) {
if (area.is(':visible')) {
hideArea();
} else {