Skip to content

Commit

Permalink
add ability to trigger event
Browse files Browse the repository at this point in the history
  • Loading branch information
vaidasm committed Nov 6, 2015
1 parent 8ca3484 commit 72ec061
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/modal.min.js

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

2 changes: 2 additions & 0 deletions modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@

if (data.redirect) {
window.location = data.redirect;
} else if (data.event) {
$(document).trigger(data.event, [data.data]);
} else {
window.location.reload();
}
Expand Down

0 comments on commit 72ec061

Please sign in to comment.