Skip to content

Commit

Permalink
Fixed:
Browse files Browse the repository at this point in the history
Wrong button shown when changing
modules with multiple configurable options
  • Loading branch information
ada-af committed Apr 1, 2020
1 parent 5a75662 commit 05c1684
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ <h2>General settings</h2>
</div>
<div class="card-body container-fluid">
{% for j in i.options.keys() %}
<form action="/settings/{{i.name}}/{{j}}" method="POST" id="{{i.name}}_form">
<form action="/settings/{{i.name}}/{{j}}" method="POST" id="{{i.name}}_{{j}}_form">
<div class="form-group mb-2">
<input type="text" readonly class="form-control-plaintext" id="key" value="{{j}}">

<input type="text" class="form-control" name='{{j}}_new_opt'
value="{{i.options[j].strip("\"''")}}" oninput="show_button('#{{i.name}}_button')"
onchange="show_button('#{{i.name}}_button')">
value="{{i.options[j].strip("\"''")}}" oninput="show_button('#{{i.name}}_{{j}}_button')"
onchange="show_button('#{{i.name}}_{{j}}_button')">

<button id="{{i.name}}_button" type="submit" class="btn btn-primary form-control"
<button id="{{i.name}}_{{j}}_button" type="submit" class="btn btn-primary form-control"
hidden>Save</button>
</div>
</form>
Expand Down

0 comments on commit 05c1684

Please sign in to comment.