Skip to content

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

License

Notifications You must be signed in to change notification settings

yudingling/jquery-confirm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery-confirm

alerts, confirms and dialogs in one.

v1.7.3

A multipurpose plugin for alert, confirm & dialog, with Super powers.

  • 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

##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.7.3)

  • Fix show and hide for closeIcon
  • Improved animations, more CSS
  • setContent method improved.
  • setTitle method added.

(New in 1.7.0)

  • Option for custom width added (using bootstrap grid)
  • Text overflow logic changed, #13
  • Documentation & improvements to contentLoaded callback.

(New in 1.6.0)

  • Theme 'supervan' added
  • Load via URL advanced added. now get control over your ajax calls & callbacks.
  • methods setContent, isClosed added
  • Improved documentation

(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

No packages published

Languages

  • HTML 82.4%
  • CSS 17.6%