Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/weisjohn/bootstrap-simple-prompts

Bootstrap Modals for `alert()` and `confirm()`
https://github.com/weisjohn/bootstrap-simple-prompts

Last synced: about 1 month ago
JSON representation

Bootstrap Modals for `alert()` and `confirm()`

Awesome Lists containing this project

README

        

bootstrap-simple-prompts
========================

Bootstrap Modals for `alert()` and `confirm()`. Requires Bootstrap 3.0+ and jQuery. [Demo](http://weisjohn.github.io/bootstrap-simple-prompts/)

## install

`bower install bootstrap-simple-prompts`

## usage

`alert(message, [title])`

`confirm(message, [title], callback)`

## originals

You can access the browser-defined implementation via:

`alert.original(message)`

`confirm.original(message, callback)`

#### credits

Originally, this was a fork of sairam's [bootstrap-prompts](https://github.com/sairam/bootstrap-prompts), but after significant departure, I rewrote it.