Skip to content

A multipurpose plugin for alert, confirm & dialog, with Extended features.

License

Notifications You must be signed in to change notification settings

dkurlow/jquery-confirm

 
 

Repository files navigation

jquery-confirm

alerts, confirms and dialogs in one.

v1.5.3

A multipurpose plugin for alert, confirm & dialog, with Extended features.

  • Keyboard actions.
  • directly load content via Ajax
  • Auto-close dialog after a specified time
  • prevent Dialog close on background click
  • callback function, and more

View Detailed Documentation & Examples

Installation

Download the latest release here and use the files within dist folder.

via Bower:
$ bower install craftpip/jquery-confirm
via Npm:
$ npm install jquery-confirm

##Basic Usage

How to respond to user action

$.confirm({
    confirm: function(){
            console.log('the user clicked confirm');
    },
    cancel: function(){
            console.log('the user clicked cancel');
    }
});

Demo and Documentation

See Detailed Docs + Example here.

Authors

Boniface Pereira

Issues

Please post issues and feature request here Github issues

jconfirm alias

The $.alert() , $.confirm() & $.dialog() are alias of jconfirm();.

Checkout the documentation for further information.

Version changes

(New in 1.5.3)

  • Bounce Animation added (kind of elastic).
  • Hide title if false.
  • Keyboard action, SPACE key added to trigger confirm function.
  • Background now has fade animation (open & close).
  • Keep a record of opened, closed, currentlyOpened dialogs jconfirm.record.
  • Tweaks.

(New in 1.5.1)

  • Bower added.

(New in 1.5.0)

  • Keyboard support to control modal. (ENTER and ESC).
  • Control over the dialog via this.
  • Updated DOCUMENTATION.
  • Code optimized.

(New in 1.1.3)

  • $.dialog alias added.
  • Refined animations.
  • Removed Blur animation (was buggy).
  • Animation speed fixed.
  • Ajax-content loading now waits and disabled buttons until loaded.
  • Modal center justified on screen.
  • Added close icon if buttons are disabled (dialog mode).
  • Disabled window scroll on modal open.
  • Fixed bugs.

(New in 1.1.0)

  • Ajax content loading content: 'url:loadfrom.html'.

Copyright and license

Copyright (C) 2014-2015 jquery-confirm

Licensed under the MIT license.

About

A multipurpose plugin for alert, confirm & dialog, with Extended features.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • HTML 81.6%
  • CSS 18.4%