restrict $div to local scope

This commit is contained in:
michag86 2014-10-07 11:09:07 +02:00
parent f4a2ddbe31
commit 0039099f51
1 changed files with 1 additions and 1 deletions

View 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);
}