Skip to content

Commit

Permalink
Bumped to 0.5.1 - new Ajax complete event.
Browse files Browse the repository at this point in the history
  • Loading branch information
kylefox committed Jun 20, 2012
1 parent 3f68f34 commit da3509a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ The following events are triggered when AJAX modals are requested.
$.modal.AJAX_SEND = 'modal:ajax:send';
$.modal.AJAX_SUCCESS = 'modal:ajax:success';
$.modal.AJAX_FAIL = 'modal:ajax:fail';
$.modal.AJAX_COMPLETE = 'modal:ajax:complete';

The handlers receive no arguments. The events are triggered on the `<a>` element which initiated the AJAX modal.

Expand Down
3 changes: 2 additions & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type="text/javascript" charset="utf-8"></script>

<script src="../jquery.modal.js" type="text/javascript" charset="utf-8"></script>
<script src="../jquery.modal.min.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="../jquery.modal.css" type="text/css" media="screen" />

<script src="highlight/highlight.pack.js" type="text/javascript" charset="utf-8"></script>
Expand Down Expand Up @@ -180,6 +180,7 @@ <h2>Example 5: the un-closable window</h2>
$(document).on($.modal.CLOSE, log_modal_event);
$(document).on($.modal.AJAX_SEND, log_modal_event);
$(document).on($.modal.AJAX_SUCCESS, log_modal_event);
$(document).on($.modal.AJAX_COMPLETE, log_modal_event);

$('#more').click(function() {
$(this).parent().after($(this).parent().next().clone());
Expand Down
2 changes: 1 addition & 1 deletion jquery.modal.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
A simple jQuery modal (http://github.com/kylefox/jquery-modal)
Version 0.5
Version 0.5.1
*/
(function($) {

Expand Down
10 changes: 5 additions & 5 deletions jquery.modal.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit da3509a

Please sign in to comment.