Skip to content

Commit 252c38c

Browse files
committed
Force preserve scrolling position
1 parent cedeb88 commit 252c38c

File tree

1 file changed

+2
-0
lines changed
  • GCDWebUploader/GCDWebUploader.bundle/js

1 file changed

+2
-0
lines changed

GCDWebUploader/GCDWebUploader.bundle/js/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ function _reload(path) {
7878
}).fail(function(jqXHR, textStatus, errorThrown) {
7979
_showError("Failed retrieving contents of \"" + path + "\"", textStatus, errorThrown);
8080
}).done(function(data, textStatus, jqXHR) {
81+
var scrollPosition = $(document).scrollTop();
8182

8283
if (path != _path) {
8384
$("#path").empty();
@@ -169,6 +170,7 @@ function _reload(path) {
169170
});
170171
});
171172

173+
$(document).scrollTop(scrollPosition);
172174
}).always(function() {
173175
_enableReloads();
174176
});

0 commit comments

Comments
 (0)