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
+1 -1
View File
@@ -87,7 +87,7 @@ if(isset($_GET['chan'])){
</div>
<div id="mega-background"></div>
<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>
<input
class="input-field room-namer"
+1 -1
View File
@@ -74,7 +74,7 @@
</div>
<div id="mega-background"></div>
<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>
<input
class="input-field room-namer"
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
File diff suppressed because one or more lines are too long
+6
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;
});