[PATCH 1 of 3 V2] hgweb: call scrollHandler again on request completion

Alexander Plavin alexander at plav.in
Sat Aug 17 17:32:04 CDT 2013


# HG changeset patch
# User Alexander Plavin <alexander at plav.in>
# Date 1376754516 -14400
#      Sat Aug 17 19:48:36 2013 +0400
# Node ID 5b8793da98a62a2c86adbd6d76a8c4608ba9edf6
# Parent  12fcadea359e8df4d5c53cc0807acac00be38d02
hgweb: call scrollHandler again on request completion

On very tall monitors default 60 entries may be not enough for scrollbar
to appear, thus there was no way to use ajax scrolling there. After this patch
another portion of entries is loaded in this case
(multiple times, if necessary).

diff -r 12fcadea359e -r 5b8793da98a6 mercurial/templates/static/mercurial.js
--- a/mercurial/templates/static/mercurial.js	Sat Aug 17 19:48:58 2013 +0400
+++ b/mercurial/templates/static/mercurial.js	Sat Aug 17 19:48:36 2013 +0400
@@ -375,6 +375,7 @@
                 },
                 function oncomplete() {
                     updateInitiated = false;
+                    scrollHandler();
                 }
             );
         }


More information about the Mercurial-devel mailing list