app/js/main.js
//for get call adds row to table for each object it calls
for get call adds row to table for each object it calls
for get call adds row to table for each object it calls
function addRowToTable(uuid, obj){
  var $tr = $('<tr><td><img src="'+ obj.photoUrl + '"></td><td>' + obj.name + '</td><td>' + obj.phone + '</td><td>'+ obj.email + '</td><td>' + obj.twitter + '</td><td><button class="removeBtn">Remove</button><td></tr>');
  $tr.attr('data-uuid', uuid);
  $('tbody').append($tr);
}
function addRowToTable ( uuid , obj ) { var $tr = $ ( '<tr><td><img src="' + obj . photoUrl + '"></td><td>' + obj . name + '</td><td>' + obj . phone + '</td><td>' + obj . email + '</td><td>' + obj . twitter + '</td><td><button class="removeBtn">Remove</button><td></tr>' ) ; $tr . attr ( 'data-uuid' , uuid ) ; $ ( 'tbody' ) . append ( $tr ) ; }
for get call adds row to table for each object it calls
for get call adds row to table for each object it calls