Skip to content

Commit

Permalink
Reinitiliaze to scrollTo 0 when showing new contents. Fix #164
Browse files Browse the repository at this point in the history
  • Loading branch information
nyroDev committed Oct 21, 2012
1 parent aace5e7 commit 2a1e1af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/jquery.nyroModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ jQuery(function($, undefined) {
this._callFilters('afterShowCont');
this.elts.cont.append(this._scriptsShown);
this._reposition();
this.elts.cont.scrollTop(0);
}, this));
}, this);
if (this._nbContentLoading == 1) {
Expand All @@ -454,6 +455,7 @@ jQuery(function($, undefined) {
this._callAnim('showCont', $.proxy(function() {
this.elts.cont.append(this._scriptsShown);
this._reposition();
this.elts.cont.scrollTop(0);
}, this));
}, this));
}
Expand Down

0 comments on commit 2a1e1af

Please sign in to comment.