less spammy rain

This commit is contained in:
unek
2014-05-06 09:48:28 +02:00
parent 6c8e2e62e7
commit 4f9cdce82c
3 changed files with 22 additions and 7 deletions
+9 -3
View File
@@ -87,6 +87,7 @@
<thead>
<th>#</th>
<th>Address</th>
<th>Total deposited</th>
</thead>
<tbody id="userinfo_address_list">
@@ -106,9 +107,14 @@
$('#userinfo_address_list').empty();
$.getJSON('/user/' + user, function(data) {
$.each(data.addresses, function(key, val) {
$('#userinfo_address_list').append('<tr><td>' + key + '</td><td>' + val + '</td></tr>');
})
})
$('#userinfo_address_list').append('
<tr>
<td>' + (key + 1) + '</td>
<td>' + val.address + '</td>
<td>' + val.amount + '</td>
</tr>');
});
});
$('#userinfo_modal').modal('show');
});
</script>