MDL-35954 javascript: prevent JS from being triggered on select box by clicking on already selected option

This commit is contained in:
Mark Nelson
2012-12-10 14:08:52 +13:00
committed by Sam Hemelryk
parent d87a55fc2b
commit 656cea20a6
+2
View File
@@ -426,6 +426,7 @@ 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) {
@@ -433,6 +434,7 @@ M.util.init_select_autosubmit = function(Y, formid, selectid, nothing) {
if(e.keyCode == 13) {
form.submit();
}
paramobject.lastindex = select.get('selectedIndex');
}
}