restrict $div to local scope
This commit is contained in:
parent
f4a2ddbe31
commit
0039099f51
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue