Skip to content

Commit

Permalink
user selection: MDL-17073 add options to control the search in a coll…
Browse files Browse the repository at this point in the history
…apsible region - Fix JavaScript error.
  • Loading branch information
tjhunt committed Nov 4, 2008
1 parent 09c660e commit 4099f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/selector/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function user_selector(name, hash, extrafields, strprevselected, strnomatchingus
// Hide the search button and replace it with a label.
var searchbutton = document.getElementById(this.name + '_searchbutton');
var label = document.createElement('label');
label.for = this.name + '_searchtext';
label.htmlFor = this.name + '_searchtext';
label.appendChild(document.createTextNode(searchbutton.value));
this.searchfield.parentNode.insertBefore(label, this.searchfield);
searchbutton.parentNode.removeChild(searchbutton);
Expand Down

0 comments on commit 4099f71

Please sign in to comment.