navigation MDL-14632 Fixed minor regressions for recent patches

* Search field now takes input again
 * Javascript event propogration is stopped to prevent refreshing when switch block position
This commit is contained in:
samhemelryk
2009-09-01 02:07:01 +00:00
parent 50476da5c3
commit fff23fcd86
2 changed files with 13 additions and 11 deletions
@@ -108,8 +108,7 @@ class block_settings_navigation_tree extends block_tree {
$searchform->url = new moodle_url("$CFG->wwwroot/$CFG->admin/search.php");
$searchform->method = 'get';
$searchform->button->text = get_string('search');
$searchfield = html_field::make_text('query', optional_param('query', '', PARAM_RAW));
$searchfield = html_field::make_text('query', optional_param('query', '', PARAM_RAW), '', 50);
$searchfield->id = 'query';
$searchfield->style .= 'width: 7em;';
$searchfield->set_label(get_string('searchinsettings', 'admin'), 'query');