This example suppresses the confirmation dialog when user presses the “Deselect All” link. When there is no message specified for the confirmation, we skip showing it and assume that the user is OK with it.
To see the effect,
- Complete a successful import,
- Click “Select All”,
- Click “Deselect All”
You should not see the confirmation dialog after clicking “Deselect All” and no contacts should be selected.
<script src="https://api.cloudsponge.com/widget/localhost-only.js"></script>
<script>
cloudsponge.init({
// by clearning or nulling this text, our widget will skip showing the confirmation dialog
localeData: {
DESELECT_CONFIRM: null
}
})
</script>