Permalink
Browse files

Reinitiliaze to scrollTo 0 when showing new contents. Fix #164

  • Loading branch information...
1 parent aace5e7 commit 2a1e1af374f67a00730bd76f32e9f211a898c658 @nyroDev committed Oct 21, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 js/jquery.nyroModal.js
@@ -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) {
@@ -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));
}

0 comments on commit 2a1e1af

Please sign in to comment.