Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ certain value, for extra willingness confirmation (inspired by GitHub's

## Installation

### Rails

Add this line to your application's Gemfile:

gem 'data-confirm-modal'
Expand All @@ -30,6 +32,21 @@ And then require the Javascript from your `application.js`:

//= require data-confirm-modal

### Node

Install the package:

```bash
npm install data-confirm-modal
```

Require and invoke the module within your code:

```javascript
var dataConfirmModal = require('data-confirm-modal')(jQuery);
```


## Usage

### With Rails ([example](http://jsfiddle.net/zpu4u6mh/))
Expand Down
Loading