Strategy to handle unexpected result when user cancels ic-confirm

18 views
Skip to first unread message

Sky Richardson

unread,
Jul 18, 2019, 6:51:25 AM7/18/19
to intercooler-js

At_Homes.jpg


Unchecking checkbox triggers a post request via ic-confirm. When the user selects cancel the select box is unchecked even though the true state is unchecked. Any ideas on how to revert the checkbox state on ic-confirm cancel?

Here is an example URL
Click checkbox for 36 Quirk Rd. Then uncheck to trigger ic-confirm. Then click cancel.

Sky Richardson

unread,
Jul 18, 2019, 7:08:06 AM7/18/19
to intercooler-js
Here is the code

<input class="form-check-input" type="checkbox" value="" id="{{ address.recID }}-checkbox" ic-post-to="updateStatus.php" ic-target="#{{ address.recID }}" ic-confirm="Are you sure?" checked>
Reply all
Reply to author
Forward
0 new messages