File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ pywb 2.7.3 changelist
4
4
(In progress)
5
5
6
6
* Catch warcio exceptions when indexing CDX by @oskarhek
7
- oskarhek
8
7
* Add ui.logo_home_url as config.yaml option
9
8
* wb-manager: Show error when adding duplicate warc files by @kuechensofa
9
+ * Improve search template and add help text by @krakan
10
10
11
11
pywb 2.7.2 changelist
12
12
~~~~~~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -25,11 +25,12 @@ var elemIds = {
25
25
form : 'search-form' ,
26
26
resultsNewWindow : 'open-results-new-window' ,
27
27
advancedOptions : 'advanced-options' ,
28
- clearOptions : 'clear-options ' ,
28
+ resetSearchForm : 'reset-search-form ' ,
29
29
} ;
30
30
31
- function clearOptions ( event ) {
31
+ function resetSearchForm ( event ) {
32
32
for ( const field of [
33
+ elemIds . url ,
33
34
elemIds . match ,
34
35
elemIds . dateTime . from ,
35
36
elemIds . dateTime . fromTime ,
@@ -206,7 +207,7 @@ $(document).ready(function() {
206
207
elemIds . dateTime . to ,
207
208
document . getElementById ( elemIds . dateTime . toBad )
208
209
) ;
209
- document . getElementById ( elemIds . clearOptions ) . onclick = clearOptions ;
210
+ document . getElementById ( elemIds . resetSearchForm ) . onclick = resetSearchForm ;
210
211
document . getElementById ( elemIds . filtering . add ) . onclick = addFilter ;
211
212
document . getElementById ( elemIds . filtering . clear ) . onclick = clearFilters ;
212
213
var searchURLInput = document . getElementById ( elemIds . url ) ;
Original file line number Diff line number Diff line change @@ -58,16 +58,16 @@ <h4 class="display-4">
58
58
</ div >
59
59
</ div >
60
60
< div class ="col-7 ">
61
- < button type ="submit " id ="search-button " class ="btn btn-outline- primary float-right " role ="button " aria-label ="{{ _('Search') }} ">
61
+ < button type ="submit " id ="search-button " class ="btn btn-primary float-right " role ="button " aria-label ="{{ _('Search') }} ">
62
62
{% trans %}Search{% endtrans %}
63
63
</ button >
64
- < button class ="btn btn-outline-info float-right mr-3 " type ="button " role ="button "
64
+ < button class ="btn btn-outline-secondary float-right mr-3 " type ="button " role ="button "
65
65
data-toggle ="collapse " data-target ="#advancedOptions " id ="advanced-options "
66
66
aria-expanded ="false " aria-controls ="advancedOptions " aria-label ="{{ _('Search Options') }} ">
67
67
{{ _('Search Options') }}
68
68
</ button >
69
- < button id ="clear-options " class ="btn btn-outline-warning float-right mr-3 " type ="button " role ="button " aria-label ="{{ _('Reset Options') }} ">
70
- {{ _('Reset Options ') }}
69
+ < button id ="reset-search-form " class ="btn btn-outline-danger float-right mr-3 " type ="button " role ="button " aria-label ="{{ _('Reset Options') }} ">
70
+ {{ _('Reset') }}
71
71
</ button >
72
72
</ div >
73
73
</ div >
@@ -153,7 +153,7 @@ <h4 class="display-4">
153
153
< ul id ="filter-list " class ="filter-list ">
154
154
< li id ="filtering-nothing "> {% trans %}No Filter{% endtrans %}</ li >
155
155
</ ul >
156
- < button id ="clear-filters " class ="btn btn-outline-warning float-right mr-2 " type ="button ">
156
+ < button id ="clear-filters " class ="btn btn-outline-danger float-right mr-2 " type ="button ">
157
157
{% trans %}Clear Filters{% endtrans %}
158
158
</ button >
159
159
</ div >
You can’t perform that action at this time.
0 commit comments