diff options
author | Struan Donald <struan@exo.org.uk> | 2012-01-13 19:01:23 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-01-13 19:01:23 +0000 |
commit | 8ab9e5c03b8d366cfb45ed34258ed8c01103a676 (patch) | |
tree | 5b4b72baf9f5f358962c9c24179174eb8f091b69 /web/js | |
parent | c8a42fcd483a2dbbb52124c2a3d648f4a2641272 (diff) |
improved comment explaining iOS code path
Diffstat (limited to 'web/js')
-rw-r--r-- | web/js/fixmystreet.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js index dcb8525d1..2e46580f9 100644 --- a/web/js/fixmystreet.js +++ b/web/js/fixmystreet.js @@ -90,9 +90,9 @@ $(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 ) { - /* And all because the .before thing doesn't seem to work in - mobile safari on iOS 5. However outerHTML is not cross - browser so we have to have two solutions :( */ + /* 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 ); |