Merge pull request #130 from theRTC204/confirm-reset-fields

feat: Added confirm on reset all fields
master
Mike Bryant 4 years ago committed by GitHub
commit 9aeb53c261
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -85,9 +85,11 @@ const initialize = function () {
$("#permalink-btn").on("click", copyPermalink)
$("#reset").on("click", function () {
sell_inputs.forEach(input => input.value = '')
fillFields([], false, -1)
update()
if (window.confirm("Are you sure you want to reset all fields?\n\nThis cannot be undone!")) {
sell_inputs.forEach(input => input.value = '')
fillFields([], false, -1)
update()
}
})
}

Loading…
Cancel
Save