Skip to content

Instantly share code, notes, and snippets.

@rafaelaugustos
Created June 13, 2016 19:24
Show Gist options
  • Save rafaelaugustos/9bbda9a9017ab6cdc140d74a55ddd657 to your computer and use it in GitHub Desktop.
Save rafaelaugustos/9bbda9a9017ab6cdc140d74a55ddd657 to your computer and use it in GitHub Desktop.
function adicionaExcluir(){
var arrayManager = localStorage.manager.split(',');
$('.notific-botoes').each(function(){
var artista = $(this).attr('data-artist');
var notification_id = $(this).attr('data-notific');
if(findItemArray(artista, arrayManager) == 1){
//faz tua parada aqui
$(this).append('<span style="margin-top: 5px; margin-left: 5px;" class="delNotification" data-id="'+notification_id+'"><i style="font-size:20px; color: #666;" class="fa fa-trash" aria-hidden="true"></i></span>');
}else{
alert(arrayManager);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment