diff --git a/public/js/client.js b/public/js/client.js index b14d88f1..0a280cdb 100644 --- a/public/js/client.js +++ b/public/js/client.js @@ -79,11 +79,12 @@ function timeFormat(msTime) { zeroPad(d.getSeconds(), 2) + " "; } -$(document).ready(function() { - //setup "global" variables first - var socket = io.connect("127.0.0.1:3000"); - var myRoomID = null; +//setup "global" variables first +var socket = io.connect("127.0.0.1:3000"); +var myRoomID = null; +$(document).ready(function() { + $("form").submit(function(event) { event.preventDefault(); });