Skip to content

Commit

Permalink
Merge branch 'MDL-35954_master' of git://github.com/markn86/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Dec 10, 2012
2 parents 1b4e47e + c2aad61 commit 9d8abff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/javascript-static.js
Expand Up @@ -426,13 +426,15 @@ M.util.init_select_autosubmit = function(Y, formid, selectid, nothing) {
if (e.button == 1) {
buttonflag = 1;
}
paramobject.lastindex = select.get('selectedIndex');
};

var changedown = function(e, paramobject) {
if ((nothing===false || select.get('value') != nothing) && paramobject.lastindex != select.get('selectedIndex')) {
if(e.keyCode == 13) {
form.submit();
}
paramobject.lastindex = select.get('selectedIndex');
}
}

Expand Down

0 comments on commit 9d8abff

Please sign in to comment.