onepage even when submitting form

This commit is contained in:
Kasper Rynning-Tønnesen
2016-01-25 14:21:41 +01:00
parent ae82f3fbf9
commit d8a10a5952
5 changed files with 11 additions and 5 deletions

View File

@@ -87,7 +87,7 @@ if(isset($_GET['chan'])){
</div> </div>
<div id="mega-background"></div> <div id="mega-background"></div>
<h5>Create a radio channel, collaborate and listen</h5> <h5>Create a radio channel, collaborate and listen</h5>
<form class="channel-finder"> <form class="channel-finder" onsubmit="return false;">
<p class="prething">zoff.no/</p> <p class="prething">zoff.no/</p>
<input <input
class="input-field room-namer" class="input-field room-namer"

View File

@@ -74,7 +74,7 @@
</div> </div>
<div id="mega-background"></div> <div id="mega-background"></div>
<h5>Create a radio channel, collaborate and listen</h5> <h5>Create a radio channel, collaborate and listen</h5>
<form class="channel-finder"> <form class="channel-finder" onsubmit="return false;">
<p class="prething">zoff.no/</p> <p class="prething">zoff.no/</p>
<input <input
class="input-field room-namer" class="input-field room-namer"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -352,3 +352,9 @@ $(document).on('click', '#cookieok', function() {
} }
}); });
$(document).on("submit", ".channel-finder", function(e){
e.preventDefault();
Nochan.to_channel($(".room-namer").attr("placeholder"));
return false;
});