From: michag86 Date: Tue, 7 Oct 2014 09:09:07 +0000 (+0200) Subject: restrict $div to local scope X-Git-Tag: v7.0.3RC1~49 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a045f8cd3aa203ad35bc4e3af0ddd76a38dbc38e;p=nextcloud-server.git restrict $div to local scope --- 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); }