Created
June 13, 2016 19:24
-
-
Save rafaelaugustos/9bbda9a9017ab6cdc140d74a55ddd657 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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