15 lines
295 B
JavaScript
15 lines
295 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();
|
|
});
|
|
|
|
});
|