Removed info box showing up when pushing listening on empty values

This commit is contained in:
Kasper Rynning-Tønnesen
2016-01-13 14:20:54 +01:00
parent 417b9cdba9
commit 1a699d136a
3 changed files with 5 additions and 4 deletions

View File

@@ -289,9 +289,10 @@ $(document).on('click', '#toast-container', function(){
});
});
$(".listen-button").click(function(){
$(".listen-button").click(function(e){
//console.log($(".room-namer").attr("placeholder"));
if($(".room-namer").val() == ""){
e.preventDefault();
window.location = "?chan="+$(".room-namer").attr("placeholder");
}
});