diff --git a/tests/test_app.py b/tests/test_app.py index 5258191..1e7a206 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -482,7 +482,7 @@ class TestAppInDebug(OtherTestBase): def test_html(self): response = self.fetch('/', method='GET') - self.assertNotIn(b'required>', response.body) + self.assertIn(b'novalidate>', response.body) class TestAppMiscell(OtherTestBase): diff --git a/webssh/static/js/main.js b/webssh/static/js/main.js index a541aee..cd17b5e 100644 --- a/webssh/static/js/main.js +++ b/webssh/static/js/main.js @@ -1,16 +1,16 @@ +/*jslint browser:true */ + var jQuery; var wssh = {}; jQuery(function($){ - /*jslint browser:true */ - var status = $('#status'), btn = $('.btn-primary'), style = {}, title_text = 'WebSSH', title_element = document.querySelector('title'), - debug = !document.querySelector('#hostname').required, + debug = document.querySelector('#connect').noValidate, DISCONNECTED = 0, CONNECTING = 1, CONNECTED = 2, @@ -472,8 +472,8 @@ jQuery(function($){ wssh.connect = connect; $(form_id).submit(function(event){ - event.preventDefault(); - connect(); + event.preventDefault(); + connect(); }); }); diff --git a/webssh/templates/index.html b/webssh/templates/index.html index 90cf6d9..fd8fbc8 100644 --- a/webssh/templates/index.html +++ b/webssh/templates/index.html @@ -24,21 +24,21 @@