]> source.dussan.org Git - nextcloud-server.git/commitdiff
restrict $div to local scope
authormichag86 <micha_g@arcor.de>
Tue, 7 Oct 2014 09:09:07 +0000 (11:09 +0200)
committermichag86 <micha_g@arcor.de>
Tue, 7 Oct 2014 09:09:07 +0000 (11:09 +0200)
settings/js/users/users.js

index ed9999760a96ebb3defec653455b1453d2efbe52..0cb5fe3e15ca0faeb96c507713b1ae61a5e445f7 100644 (file)
@@ -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);
                                                }