fix user address bug on web interface

This commit is contained in:
teknogeek
2014-05-12 14:38:04 -04:00
parent 42c6031697
commit 53c1c57483
+1 -6
View File
@@ -107,12 +107,7 @@
$('#userinfo_address_list').empty(); $('#userinfo_address_list').empty();
$.getJSON('/user/' + user, function(data) { $.getJSON('/user/' + user, function(data) {
$.each(data.addresses, function(key, val) { $.each(data.addresses, function(key, val) {
$('#userinfo_address_list').append(' $('#userinfo_address_list').append('<tr><td>' + (key + 1) + '</td><td>' + val.address + '</td><td>' + val.amount + '</td></tr>');
<tr>
<td>' + (key + 1) + '</td>
<td>' + val.address + '</td>
<td>' + val.amount + '</td>
</tr>');
}); });
}); });
$('#userinfo_modal').modal('show'); $('#userinfo_modal').modal('show');