From dcb1894e0c708df0677187355c6743c08ac44c26 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 31 May 2011 20:36:19 +0200 Subject: fixed positional captchas + availbillity over thrift --- module/web/templates/default/captcha.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/web/templates') diff --git a/module/web/templates/default/captcha.html b/module/web/templates/default/captcha.html index 0165fed10..6c0099773 100644 --- a/module/web/templates/default/captcha.html +++ b/module/web/templates/default/captcha.html @@ -29,7 +29,7 @@ } function set_captcha(data) { - $('cap_id').set('value', data.id); + $('cap_id').set('value', data.id); if (data.result_type == 'textual') { $('cap_textual_img').set('src', data.src); $('cap_title').set('text', '{{_("Please read the text on the captcha.")}}'); @@ -61,7 +61,7 @@ } function on_cap_click(e) { - var position = event.target.getPosition(); + var position = e.target.getPosition(); var x = e.page.x - position.x; var y = e.page.y - position.y; $('cap_result').value = x + "," + y; @@ -96,7 +96,7 @@
- +
-- cgit v1.2.3