www/adiumxtras.com 42:4833d43f8daf: Copy the captcha from the bo...
commits at adium.im
commits at adium.im
Sat Mar 3 20:03:15 UTC 2012
details: http://hg.adium.im/www/adiumxtras.com/rev/4833d43f8daf
revision: 42:4833d43f8daf
branch: adiumxtras.com
author: Thijs Alkemade <thijsalkemade at gmail.com>
date: Sat Mar 03 21:02:40 2012 +0100
Copy the captcha from the bottom when replying, this is a hack as it duplicates the ids, but I don't know a way to generate a new captcha inside xtras.js.
diffs (13 lines):
diff -r 4e45bc59a498 -r 4833d43f8daf scripts/xtras.js
--- a/scripts/xtras.js Thu Mar 01 20:48:57 2012 +0100
+++ b/scripts/xtras.js Sat Mar 03 21:02:40 2012 +0100
@@ -187,6 +187,9 @@
textarea.setAttribute("style", "margin-left: 5px; width: 95%;");
form.appendChild(textarea);
+ var captcha = document.getElementById("recaptcha_widget_div").cloneNode(true);
+ form.appendChild(captcha);
+
var submit = document.createElement("INPUT");
submit.setAttribute("type", "submit");
submit.setAttribute("value", "Add Comment");
More information about the commits
mailing list