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

@@ -18,7 +18,8 @@
#toast-container{ #toast-container{
left:2% !important; left:2% !important;
pointer-events:none; cursor:pointer;
/*pointer-events:none;*/
} }
::-webkit-scrollbar-track ::-webkit-scrollbar-track

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -340,3 +340,9 @@ $("#suggestions").on( "click", "#del_user_suggested", function(e){
$("#suggested-" + id).remove(); $("#suggested-" + id).remove();
List.vote(id, "del"); List.vote(id, "del");
}); });
$(document).on('click', '#toast-container', function(){
$(this).fadeOut(function(){
$(this).remove();
});
});

View File

@@ -281,6 +281,12 @@ $(document).on('click', '#cookieok', function() {
}); });
}); });
$(document).on('click', '#toast-container', function(){
$(this).fadeOut(function(){
$(this).remove();
});
});
$(".listen-button").click(function(){ $(".listen-button").click(function(){
//console.log($(".room-namer").attr("placeholder")); //console.log($(".room-namer").attr("placeholder"));
if($(".room-namer").val() == ""){ if($(".room-namer").val() == ""){