Merge branch 'MDL-40470-master' of git://github.com/andrewnicols/moodle
[moodle.git] / lib / yui / src / formautosubmit / js / formautosubmit.js
index fe13bcb..a7f1e27 100644 (file)
@@ -34,8 +34,8 @@ Y.extend(FORMAUTOSUBMIT, Y.Base, {
                 // 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.touchEnabled) {
+                // IOS and Android trigger touch events.
                 applyto.delegate('change', this.process_changes, 'select.' + CSS.AUTOSUBMIT, this);
             }
         }