Commit fa152aea5eff9e9e9b1a79fa9e11e5bae3defcf3
1 parent
4b64971d
Exists in
master
and in
53 other branches
Revert "Set default search ordering to 'latest'"
This reverts commit 546fbdb09a88a5a138e408d307471721d65c1556.
Showing
2 changed files
with
1 additions
and
1 deletions
Show diff stats
src/colab-spb-theme-plugin/colab_spb_theme/templates/header.html
@@ -99,7 +99,6 @@ | @@ -99,7 +99,6 @@ | ||
99 | <fieldset class="LSBox"><legend class="hiddenStructure">Buscar no portal</legend> | 99 | <fieldset class="LSBox"><legend class="hiddenStructure">Buscar no portal</legend> |
100 | <label class="hiddenStructure" for="nolivesearchGadget">Buscar no portal</label> | 100 | <label class="hiddenStructure" for="nolivesearchGadget">Buscar no portal</label> |
101 | <input name="q" type="text" size="18" value="{{ request.GET.q }}" title="Buscar no portal" placeholder="Buscar no portal" class="searchField" id="nolivesearchGadget"> | 101 | <input name="q" type="text" size="18" value="{{ request.GET.q }}" title="Buscar no portal" placeholder="Buscar no portal" class="searchField" id="nolivesearchGadget"> |
102 | - <input name="order" value="latest" type="hidden"> | ||
103 | <input class="searchButton" type="submit" value="Buscar no portal"> | 102 | <input class="searchButton" type="submit" value="Buscar no portal"> |
104 | </fieldset> | 103 | </fieldset> |
105 | </form> | 104 | </form> |
src/colab-spb-theme-plugin/colab_spb_theme/templates/search/search.html
@@ -61,6 +61,7 @@ | @@ -61,6 +61,7 @@ | ||
61 | <div class="col-xs-3 col-sm-4 col-md-4 col-lg-4"> | 61 | <div class="col-xs-3 col-sm-4 col-md-4 col-lg-4"> |
62 | <p class="text-right search-total">{% trans "Ordenar por:" %} | 62 | <p class="text-right search-total">{% trans "Ordenar por:" %} |
63 | <select name="order" id="order_option" onchange="this.form.submit()"> | 63 | <select name="order" id="order_option" onchange="this.form.submit()"> |
64 | + <option value=""></option> | ||
64 | {% for option, dict_order in order_data.items %} | 65 | {% for option, dict_order in order_data.items %} |
65 | {% ifequal request.GET.order option %} | 66 | {% ifequal request.GET.order option %} |
66 | <option value="{{option}}" selected>{% trans option %}</option> | 67 | <option value="{{option}}" selected>{% trans option %}</option> |