From a045f8cd3aa203ad35bc4e3af0ddd76a38dbc38e 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 4c5d8b45c74..63bba72508e 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -615,7 +615,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); } -- 2.39.5