]> 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)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 7 Oct 2014 14:30:21 +0000 (16:30 +0200)
settings/js/users/users.js

index 4c5d8b45c74f1df53a70868876ed20736664702e..63bba72508e380bb724f44ca783b3551f8850066 100644 (file)
@@ -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);
                                                }