mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
onepage even when submitting form
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
2
static/dist/frontpage.min.js
vendored
2
static/dist/frontpage.min.js
vendored
File diff suppressed because one or more lines are too long
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user