Adding pointer events to toasts, and being able to remove them b clicking

This commit is contained in:
Kasper Rynning-Tønnesen
2015-12-17 16:06:15 +01:00
parent 8b75d03885
commit 09ead1db67
5 changed files with 17 additions and 4 deletions

View File

@@ -339,4 +339,10 @@ $("#suggestions").on( "click", "#del_user_suggested", function(e){
var id = $(this).attr("data-video-id");
$("#suggested-" + id).remove();
List.vote(id, "del");
});
$(document).on('click', '#toast-container', function(){
$(this).fadeOut(function(){
$(this).remove();
});
});