Skip to content

Commit

Permalink
Trim unused and overly verbose JS
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmv committed Apr 7, 2012
1 parent ee6afd9 commit 00939e7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions eg/chat/templates/index.mt
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@
<script src="/static/jquery.cookie.js"></script>
<script src="/static/pretty.js"></script>
<script>
var ws;
var cookieName = 'tatsumaki_chat_ident';

function doPost(el1, el) {
var text = el.attr('value');
location.href = 'http://' + location.host + '/chat/' + text;
function doPost(el) {
location.href = 'http://' + location.host + '/chat/' + el.attr('value');
return;
}
</script>
Expand All @@ -23,7 +19,7 @@ function doPost(el1, el) {
<div id="content">

<h1 class="chat-room-name">Enter room name:</h1>
<form onsubmit="doPost($('#ident'), $('#chat')); return false">
<form onsubmit="doPost($('#chat')); return false">
room name to enter: <input id="chat" type="text" size="48"/>
</form>

Expand Down

0 comments on commit 00939e7

Please sign in to comment.