Permalink
Browse files

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

…fari when edit profile.
  • Loading branch information...
1 parent dcd55b7 commit 4ea054ec24ff426a55defc77f39b42f84dad1c08 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 4ea054e

Please sign in to comment.