From d7292e69c660f1b8a630dad7d0bd842236efa159 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 13 Jun 2017 11:25:12 +0200 Subject: [PATCH] Fix undefined variable --- www/common/common-file.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/common/common-file.js b/www/common/common-file.js index 9781df3ef..4ace78c9c 100644 --- a/www/common/common-file.js +++ b/www/common/common-file.js @@ -220,14 +220,14 @@ define([ e.preventDefault(); e.stopPropagation(); counter++; - $label.addClass('hovering'); + $hoverArea.addClass('hovering'); }) .on('dragleave', function (e) { e.preventDefault(); e.stopPropagation(); counter--; if (counter <= 0) { - $label.removeClass('hovering'); + $hoverArea.removeClass('hovering'); } }); @@ -240,7 +240,7 @@ define([ e.stopPropagation(); var dropped = e.originalEvent.dataTransfer.files; counter = 0; - $label.removeClass('hovering'); + $hoverArea.removeClass('hovering'); Array.prototype.slice.call(dropped).forEach(function (d) { todo(d);