From 4099f71f12125946297f52a3b0488d1db52dfb42 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 4 Nov 2008 07:51:49 +0000 Subject: [PATCH] user selection: MDL-17073 add options to control the search in a collapsible region - Fix JavaScript error. --- user/selector/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/selector/script.js b/user/selector/script.js index 529960d121..3182bb9104 100644 --- a/user/selector/script.js +++ b/user/selector/script.js @@ -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); -- 2.39.5