Skip to content

Commit 7dbe45f

Browse files
committed
Fix: modals with fade not displaying again after initial open/close (Closes #138)
1 parent e8fe9db commit 7dbe45f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jquery.modal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
A simple jQuery modal (http://github.com/kylefox/jquery-modal)
3-
Version 0.6.0
3+
Version 0.6.1
44
*/
55
(function($) {
66

@@ -113,7 +113,7 @@
113113
this.$elm.addClass(this.options.modalClass + ' current');
114114
this.$elm.appendTo(this.blocker);
115115
if(this.options.doFade) {
116-
this.$elm.css('opacity',0).animate({opacity: 1}, this.options.fadeDuration);
116+
this.$elm.css('opacity',0).show().animate({opacity: 1}, this.options.fadeDuration);
117117
} else {
118118
this.$elm.show();
119119
}

jquery.modal.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)