Permalink
Browse files

Merge branch 'MDL-23224' of git://github.com/mouneyrac/moodle

  • Loading branch information...
2 parents 1861a28 + 1ede3cb commit 9e41043ca432b859d64234d4392db8cfdfe7176c Sam Hemelryk committed Jan 10, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/javascript-static.js
View
@@ -365,7 +365,12 @@ M.util.init_select_autosubmit = function(Y, formid, selectid, nothing) {
// event.... usability
Y.on('key', processchange, select, 'press:13', form, select.get('selectedIndex'));
select.on('blur', processchange, form, select.get('selectedIndex'));
- select.on('click', processchange, form, select.get('selectedIndex'));
+ //little hack for chrome that need onChange event instead of onClick - see MDL-23224
+ if (Y.UA.webkit) {
+ select.on('change', processchange, form, select.get('selectedIndex'));
+ } else {
+ select.on('click', processchange, form, select.get('selectedIndex'));
+ }
}
}
});

0 comments on commit 9e41043

Please sign in to comment.