Permalink
Browse files

MDL-39776 Javascript - enable formautosubmit from a select box on and…

…roid
  • Loading branch information...
1 parent 9844660 commit 88e2d12038c7f424f223f57e9fd6a4d36c6d5ea3 @jsnfwlr jsnfwlr committed Oct 9, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/yui/formautosubmit/formautosubmit.js
@@ -33,8 +33,8 @@ YUI.add('moodle-core-formautosubmit',
// Macintosh webkit browsers like change events, but non-macintosh webkit browsers don't.
applyto.delegate('change', this.process_changes, 'select.' + CSS.AUTOSUBMIT, this);
}
- if (Y.UA.ios) {
- // IOS doesn't trigger click events because it's touch-based.
+ if ((Y.UA.ios) || (Y.UA.android)) {
+ // IOS and Android don't trigger click events because they are touch-based.
applyto.delegate('change', this.process_changes, 'select.' + CSS.AUTOSUBMIT, this);
}
}

0 comments on commit 88e2d12

Please sign in to comment.