Automatic Selection
October 11, 2007 - 3:19pm — andyl56
| Project: | Impromptu |
| Version: | 1.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
I would like to see the ability to see an option to automatically select a chosen button after a delay of inactivity. For instance:
$.prompt('You are about to delete all selected items. Are you sure you want to continue?', {
buttons: { Yes: true, No: false },
default: false,
timeout: 120,
callback: function(v, m) {
if (v == true) {
// Delete
}
else {
// Cancelled
}
}
});