]> git.mjollnir.org Git - moodle.git/commitdiff
user selection: MDL-17073 add options to control the search in a collapsible region...
authortjhunt <tjhunt>
Tue, 4 Nov 2008 07:51:49 +0000 (07:51 +0000)
committertjhunt <tjhunt>
Tue, 4 Nov 2008 07:51:49 +0000 (07:51 +0000)
user/selector/script.js

index 529960d121d9c784cb80466aa3580069856b0123..3182bb9104bdfdd2941e613c0961e3d594e31aad 100644 (file)
@@ -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);