Permalink
Browse files

Fixed MDL-10506 Hide/Show Advanced button does not toggle in IE and S…

…afari when edit profile
  • Loading branch information...
1 parent f96fdd4 commit f2c0c267674a9482065fb8611af9cd972faa25de whchuang committed Oct 23, 2007
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/javascript-static.js
View
@@ -282,7 +282,8 @@ function showAdvancedOnClick(button, hidetext, showtext){
button.form.elements['mform_showadvanced_last'].value = '0';
}
var formelements = button.form.elements;
- for (var i in formelements){
+ // Fixed MDL-10506
+ for (var i = 0; i < formelements.length; i++) {
if (formelements[i] && formelements[i].name && (formelements[i].name=='mform_showadvanced')){
formelements[i].value = buttontext;
}

0 comments on commit f2c0c26

Please sign in to comment.