A simple button to confirm tasks, inline and unobtrusive confirm system
HTML JavaScript
Permalink
Failed to load latest commit information.
.gitignore update README Apr 14, 2014
CONTRIBUTING.md
Gruntfile.js
LICENSE add LICENSE FILE Apr 14, 2014
README.md
bootstrap-confirm-button.src.js support string in options, adde demo page May 28, 2016
bower.json support string in options, adde demo page May 28, 2016
confirm-delete-button.png
example.html support string in options, adde demo page May 28, 2016
index.html
package.json

README.md

Bootstrap Confirm Button

A simple button to comfirm a task. Instead of using rude modals that interrupt a user's workflow, let's use a inline unobtrusive button instead. Designed especially for devices with small screen.

Compatible with Bootstrap 3!

Ispired by: http://eli.eliandlyndi.com/2011/10/10/using-jquery-to-provide-an-inline-confirmation-on-buttons/

#usage:

<a class="btn btn-primary btn-delete-item">Delete</a>
$('.btn-delete-item').btsConfirmButton("I'm sure!", function(e) {
    console.log('Item deleted!');
});

advanced configuration:

$('.btn-delete-item').btsConfirmButton({
        msg: "Confirm Deletion",
        timeout: 3000,
        className: 'btn-danger'
    }, function(e) {
    console.log('Item deleted!');
});

Image

Example:

Example

Source code:

Github NPM
Atmosphere