Skip to content

Commit

Permalink
Fixed Reset Button
Browse files Browse the repository at this point in the history
Fingers crossed on last commit
  • Loading branch information
Trevor-Welch committed Apr 8, 2020
1 parent ff6b739 commit efffda8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ <h6>Saturday</h6>
</div>
</div>
<button id="reset" class="reset-button" name="action">
Clear All Fields
Reset Turnip Prophet
</button>
</form>

Expand Down Expand Up @@ -239,8 +239,8 @@ <h2>Output</h2>
<span>PM</span>
</div>
</th>
<th valign="bottom">Week Min</th>
<th valign="bottom">Week Max</th>
<th valign="bottom">Guaranteed Minimum</th>
<th valign="bottom">Potential Maximum</th>
</tr>
</thead>
<tbody id="output"></tbody>
Expand Down
6 changes: 3 additions & 3 deletions js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ const initialize = function () {
}

$("#reset").on("click", function () {
first_buy_field.prop('checked', false);
$("select").val(null);
$("input").val(null).trigger("input");
sell_inputs.forEach(input => input.value = '')
fillFields([], false, 'unknown')
update()
})
}

Expand Down

0 comments on commit efffda8

Please sign in to comment.