diff options
author | Struan Donald <struan@exo.org.uk> | 2012-01-16 12:53:36 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-01-16 12:53:36 +0000 |
commit | cae37f3796a80e67c1d7f7b9110a643928224014 (patch) | |
tree | 40412099ab698d4ccf3b51f9e983f5a468f8d811 /web/js/fixmystreet.js | |
parent | 8ab9e5c03b8d366cfb45ed34258ed8c01103a676 (diff) |
fix iOS JS validation display issues ( fixes #187)
Diffstat (limited to 'web/js/fixmystreet.js')
-rw-r--r-- | web/js/fixmystreet.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js index 2e46580f9..9d24a4ac6 100644 --- a/web/js/fixmystreet.js +++ b/web/js/fixmystreet.js @@ -90,15 +90,7 @@ $(function(){ // we do this to stop things jumping around on blur success: function (err) { if ( form_submitted ) { err.addClass('label-valid').html( ' ' ); } else { err.addClass('label-valid-hidden'); } }, errorPlacement: function( error, element ) { - /* Manipulating elements that were hidden and have now - * been shown doesn't seem to work very well on at least - * iOS5 so we have to treat it differently */ - if (navigator.userAgent.match(/like Mac OS X/i)) { - var html = element.parent('div').html(); - element.parent('div').html( error[0].outerHTML + html ); - } else { - element.parent('div').before( error ); - } + element.parent('div').before( error ); }, submitHandler: function(form) { if (form.submit_problem) { |