Show More
@@ -31,7 +31,8 b' def assert_and_get_main_filter_content(r' | |||
|
31 | 31 | assert data_item['url'] |
|
32 | 32 | |
|
33 | 33 | if data_item['type'] == 'search': |
|
34 |
|
|
|
34 | display_val = data_item['value_display'] | |
|
35 | assert 'Search for:' in display_val, display_val | |
|
35 | 36 | elif data_item['type'] == 'repo': |
|
36 | 37 | repos.append(data_item) |
|
37 | 38 | elif data_item['type'] == 'repo_group': |
@@ -594,7 +594,7 b' commit:efced4, to search for commits' | |||
|
594 | 594 | |
|
595 | 595 | $('#main_filter').autocomplete({ |
|
596 | 596 | serviceUrl: pyroutes.url('goto_switcher_data'), |
|
597 |
params: {" |
|
|
597 | params: {"search_context": templateContext.search_context}, | |
|
598 | 598 | minChars:2, |
|
599 | 599 | maxHeight:400, |
|
600 | 600 | deferRequestBy: 300, //miliseconds |
@@ -605,6 +605,12 b' commit:efced4, to search for commits' | |||
|
605 | 605 | onSelect: function(element, suggestion){ |
|
606 | 606 | handleSelect(element, suggestion); |
|
607 | 607 | return false; |
|
608 | }, | |
|
609 | onSearchError: function (element, query, jqXHR, textStatus, errorThrown) { | |
|
610 | if (jqXHR !== 'abort') { | |
|
611 | alert("Error during search.\nError code: {0}".format(textStatus)); | |
|
612 | window.location = ''; | |
|
613 | } | |
|
608 | 614 | } |
|
609 | 615 | }); |
|
610 | 616 |
General Comments 0
You need to be logged in to leave comments.
Login now