Permalink
Browse files

JS for spambot-check

  • Loading branch information...
1 parent 5558180 commit 6bb79e8d61d099b2899bf255f80992d78017bcc8 @EdwardIII committed Feb 27, 2011
Showing with 8 additions and 1 deletion.
  1. +8 −1 root/pastes/add.tt
View
9 root/pastes/add.tt
@@ -1,6 +1,7 @@
[% title = 'New Paste' %]
-<form method="post" action="[% c.uri_for(c.controller('Pastes').action_for('add')) %]">
+<form method="post" action="[% c.uri_for(c.controller('Pastes').action_for('add')) %]">
+ <input type="hidden" name="auth" id="auth" value="beavis" />
<div>
<label for="name">
Name:
@@ -15,3 +16,9 @@
<input type="submit" name="submit" id="submit" value="Paste" />
</form>
+<script type="text/javascript">
+//<![CDATA[
+$('input[name=auth]').val('cornholio');
+$('input[name=name]').focus();
+//]]>
+</script>

0 comments on commit 6bb79e8

Please sign in to comment.