Fix propagation of hidden parameter in searches

This commit is contained in:
byte[] 2021-12-22 21:30:28 -05:00
parent 50beea4a35
commit 7ebba8b368
2 changed files with 5 additions and 0 deletions

View file

@ -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"

View file

@ -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"]