From 0039099f5119224d9bfed5ee1d5659ed3df5f46c Mon Sep 17 00:00:00 2001 From: michag86 Date: Tue, 7 Oct 2014 11:09:07 +0200 Subject: [PATCH] restrict $div to local scope --- settings/js/users/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/js/users/users.js b/settings/js/users/users.js index ed9999760a9..0cb5fe3e15c 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -616,7 +616,7 @@ $(document).ready(function () { .keypress(function (event) { if (event.keyCode === 13) { if ($(this).val().length > 0) { - $div = $tr.find('div.avatardiv') + var $div = $tr.find('div.avatardiv'); if ($div.length) { $div.imageplaceholder(uid, displayName); }