mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
Fix propagation of hidden parameter in searches
This commit is contained in:
parent
50beea4a35
commit
7ebba8b368
2 changed files with 5 additions and 0 deletions
|
@ -18,6 +18,8 @@ header.header
|
||||||
input type="hidden" name="sf" value=@conn.params["sf"]
|
input type="hidden" name="sf" value=@conn.params["sf"]
|
||||||
= if present?(@conn.params["sd"]) do
|
= if present?(@conn.params["sd"]) do
|
||||||
input type="hidden" name="sd" value=@conn.params["sd"]
|
input type="hidden" name="sd" value=@conn.params["sd"]
|
||||||
|
= if present?(@conn.params["hidden"]) do
|
||||||
|
input type="hidden" name="hidden" value=@conn.params["hidden"]
|
||||||
|
|
||||||
= if hides_images?(@conn) do
|
= if hides_images?(@conn) do
|
||||||
= select f, :del, [{"-D", ""}, {"+D", 1}, {"*D", "deleted"}, {"DO", "only"}], name: "del", class: "input header__input js-staff-action", autocomplete: "off"
|
= select f, :del, [{"-D", ""}, {"+D", 1}, {"*D", "deleted"}, {"DO", "only"}], name: "del", class: "input header__input js-staff-action", autocomplete: "off"
|
||||||
|
|
|
@ -168,5 +168,8 @@ h1 Search
|
||||||
= select f, :sf, sort_fields, class: "input input--separate-left", name: "sf", autocomplete: "off", selected: @conn.params["sf"]
|
= select f, :sf, sort_fields, class: "input input--separate-left", name: "sf", autocomplete: "off", selected: @conn.params["sf"]
|
||||||
= select f, :sd, sort_directions, class: "input input--separate-left", name: "sd", autocomplete: "off", selected: @conn.params["sd"]
|
= select f, :sd, sort_directions, class: "input input--separate-left", name: "sd", autocomplete: "off", selected: @conn.params["sd"]
|
||||||
|
|
||||||
|
= if present?(@conn.params["hidden"]) do
|
||||||
|
= hidden_input f, :hidden, name: "hidden", value: @conn.params["hidden"]
|
||||||
|
|
||||||
= if hides_images?(@conn) do
|
= if hides_images?(@conn) do
|
||||||
= select f, :del, sort_hidden, class: "input input--separate-left", name: "del", autocomplete: "off", selected: @conn.params["del"]
|
= select f, :del, sort_hidden, class: "input input--separate-left", name: "del", autocomplete: "off", selected: @conn.params["del"]
|
||||||
|
|
Loading…
Reference in a new issue