Permalink
Browse files

Fixed MDL-10506 Hide/Show Advanced text does not toggle in IE and Saf…

…ari when edit profile
  • Loading branch information...
1 parent 6a3ba4e commit 8e48cb7180d61da60a2a681508aa848895ba830b whchuang committed Oct 23, 2007
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/javascript-static.js
View
@@ -298,7 +298,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 8e48cb7

Please sign in to comment.