16 lines
297 B
JavaScript
16 lines
297 B
JavaScript
function getPersonPhone(id, collection) {
|
|
for(var i = 0; i < collection.length; i++){
|
|
if(collection[i].id == id){
|
|
return collection[i].phone;
|
|
}
|
|
}
|
|
}
|
|
|
|
$( document ).ready(function() {
|
|
|
|
$('[data-id=alert_close]').on('click', function(){
|
|
$(this).parent().slideUp();
|
|
});
|
|
|
|
});
|