Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jsxc/jsxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2017-10-23 16:36:34 +0300
committersualko <klaus@jsxc.org>2017-10-23 16:36:34 +0300
commit4bdf712f0c5930b678ed6514927205f6c56c9374 (patch)
treeb336303ebf4795d14fb4f168b2484dc299183750 /example
parent0870afb6d207da2740282af361b8d45a326cda55 (diff)
clean up
Diffstat (limited to 'example')
-rw-r--r--example/ts.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/example/ts.html b/example/ts.html
index 9498b46f..e59031c8 100644
--- a/example/ts.html
+++ b/example/ts.html
@@ -44,15 +44,15 @@
<form id="loginForm" style="margin-top: 100px; padding:15px;" class="form-inline">
<div class="form-group">
- <input class="form-control" type="text" name="url" placeholder="Bosh url" value="/http-bind/" />
+ <input class="form-control" type="text" name="url" placeholder="Bosh url" value="/http-bind/" required />
</div>
<div class="form-group">
- <input class="form-control" type="text" name="jid" placeholder="Jabber Id" value="" />
+ <input class="form-control" type="email" name="jid" placeholder="Jabber Id" value="" required />
</div>
<div class="form-group">
- <input class="form-control" type="text" name="password" placeholder="Password" value="" />
+ <input class="form-control" type="password" name="password" placeholder="Password" value="" required />
</div>
<button class="btn btn-primary">Login</button>
@@ -79,13 +79,15 @@
<script>
$('#loginForm').submit(function(ev){
- ev.preventDefault();
+ // ev.preventDefault();
var url = $(this).find('[name="url"]').val();
var jid = $(this).find('[name="jid"]').val();
var password = $(this).find('[name="password"]').val();
jsxc.start(url, jid, password);
+
+ return false;
});
</script>
</body>