aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-07-14 18:56:04 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-07-14 18:56:04 +0000
commit600cb21eaf6c11edd4fa92fbbaac78dccc1a46aa (patch)
tree9e58702b33f56f52868a7e1d172fb212c7412a09 /views
parenta858ff3e51503cdf4eeef594acb65d2324efdf81 (diff)
downloadelgg-600cb21eaf6c11edd4fa92fbbaac78dccc1a46aa.tar.gz
elgg-600cb21eaf6c11edd4fa92fbbaac78dccc1a46aa.tar.bz2
Added ugly hack to get around problems with sliding in hidden images in visual captcha on login pages in webkit browsers.
git-svn-id: http://code.elgg.org/elgg/trunk@6705 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r--views/default/account/forms/login_walled_garden.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/views/default/account/forms/login_walled_garden.php b/views/default/account/forms/login_walled_garden.php
index c7531efbd..56ea365bb 100644
--- a/views/default/account/forms/login_walled_garden.php
+++ b/views/default/account/forms/login_walled_garden.php
@@ -67,22 +67,26 @@ __HTML;
</div><div id="hiddenform_bottom"></div></div>
<script type="text/javascript">
-$(document).ready(function() {
+$(document).ready(function() {
$('input.username').focus();
// add cancel button to inline register form
$('#registration_form').find('input.submit_button').after("<input class='action_button disabled cancel_request' type='reset' value='Cancel'>");
function elgg_slide_hiddenform(activateLink, parentElement, toggleElement) {
- $(activateLink).closest(parentElement).find(toggleElement).animate({"width": "563px"}, { duration: 400 });
- $(activateLink).closest(parentElement).animate({"height": "256px"}, { duration: 400 });
+ $(activateLink).closest(parentElement).find(toggleElement).animate({"width": "563px", duration: 400});
+ $(activateLink).closest(parentElement).animate({"height": "256px", duration: 400}, function() {
+ // ewwww dirty. Webkit has problems when showing images that were hidden.
+ // forcing a reload of all the images.
+ $('.visual_captcha img').each(function() { $(this).attr('src', $(this).attr('src')); });
+ });
return false;
}
$('a.registration_link').click(function(e) {
e.preventDefault();
elgg_slide_hiddenform(this, '.walledgardenlogin', '#registration_form');
- $('input.name').focus();
+ $('input.name').focus();
});
$('a.forgotten_password_link').click(function(e) {