Skip to content

Commit

Permalink
Fix: modals with fade not displaying again after initial open/close (C…
Browse files Browse the repository at this point in the history
…loses #138)
  • Loading branch information
kylefox committed Jan 20, 2016
1 parent e8fe9db commit 7dbe45f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 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.6.0
Version 0.6.1
*/
(function($) {

Expand Down Expand Up @@ -113,7 +113,7 @@
this.$elm.addClass(this.options.modalClass + ' current');
this.$elm.appendTo(this.blocker);
if(this.options.doFade) {
this.$elm.css('opacity',0).animate({opacity: 1}, this.options.fadeDuration);
this.$elm.css('opacity',0).show().animate({opacity: 1}, this.options.fadeDuration);
} else {
this.$elm.show();
}
Expand Down
4 changes: 2 additions & 2 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 7dbe45f

Please # to comment.