Last active
August 29, 2015 14:01
-
-
Save leonguyen/c0d6ca02466caa9d7362 to your computer and use it in GitHub Desktop.
Noty confirm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var n = noty({ | |
| layout: 'center', | |
| type: 'alert', | |
| modal: false, | |
| closeWith: ['click'], | |
| text: 'Do you really want to log out?', | |
| buttons: [ | |
| {addClass: 'btn btn-primary', text: 'Ok', onClick: function($noty) { | |
| location.href='/logout' | |
| } | |
| }, | |
| {addClass: 'btn btn-danger', text: 'Cancel', onClick: function($noty) { | |
| $noty.close(); | |
| } | |
| } | |
| ] | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment