aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/fixmystreet.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-01-13 18:52:58 +0000
committerStruan Donald <struan@exo.org.uk>2012-01-13 18:52:58 +0000
commit5f80f29beb5ea74adf1ba9517da0d5ffaa9fc08c (patch)
treef7ccd0ebaf08f265e77f9fa0dc7845f25506b221 /web/js/fixmystreet.js
parent880b029945b958b564162bb5e3720e3133f0e34e (diff)
only do non .before things on ios
Diffstat (limited to 'web/js/fixmystreet.js')
-rw-r--r--web/js/fixmystreet.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js
index 23c43567e..dcb8525d1 100644
--- a/web/js/fixmystreet.js
+++ b/web/js/fixmystreet.js
@@ -73,6 +73,7 @@ $(function(){
return this.optional(element) || value.length > 5 && value.match( /\S/ ) && !value.match( validNamePat ); }, validation_strings.category );
var form_submitted = 0;
+ var submitted = false;
$("form.validate").validate({
rules: {
@@ -92,7 +93,7 @@ $(function(){
/* 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 :( */
- if ( element[0].outerHTML ) {
+ if (navigator.userAgent.match(/like Mac OS X/i)) {
var html = element.parent('div').html();
element.parent('div').html( error[0].outerHTML + html );
} else {