// Initialise the selector.
$output .= print_js_call('new user_selector', array($this->name, $hash,
- sesskey(), $this->extrafields, get_string('previouslyselectedusers'),
- get_string('nomatchingusers')), true);
+ sesskey(), $this->extrafields, get_string('previouslyselectedusers', '', '%%SEARCHTERM%%'),
+ get_string('nomatchingusers', '', '%%SEARCHTERM%%')), true);
return $output;
}
}
// Methods for refreshing the list of displayed options ========================
user_selector.prototype.insert_search_into_str = function(string, search) {
- return string.replace("''", "'" + search + "'");
+ return string.replace("%%SEARCHTERM%%", search);
}
/**