Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a new event when I receive data via AJAX to become informed when …
…the dialog is up and running
  • Loading branch information
Dirk Eisenberg committed Jun 19, 2012
1 parent cb76e3c commit 2ca8ae5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jquery.modal.js
Expand Up @@ -30,6 +30,7 @@
current.$elm.empty().append(html).on($.modal.CLOSE, remove);
current.hideSpinner();
current.open();
el.trigger($.modal.AJAX_SUCCESS_DONE);
}).fail(function() {
el.trigger($.modal.AJAX_FAIL);
current.hideSpinner();
Expand Down Expand Up @@ -163,6 +164,7 @@
$.modal.CLOSE = 'modal:close';
$.modal.AJAX_SEND = 'modal:ajax:send';
$.modal.AJAX_SUCCESS = 'modal:ajax:success';
$.modal.AJAX_SUCCESS_DONE = 'modal:ajax:success-done';
$.modal.AJAX_FAIL = 'modal:ajax:fail';

$.fn.modal = function(options){
Expand Down

0 comments on commit 2ca8ae5

Please sign in to comment.