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

login
register
mail settings
Submitter Alexander Plavin
Date Aug. 17, 2013, 10:32 p.m.
Message ID <5b8793da98a62a2c86ad.1376778724@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/2208/
State Deferred
Headers show

Comments

Alexander Plavin - Aug. 17, 2013, 10:32 p.m.
# HG changeset patch
# User Alexander Plavin <alexander@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).

Patch

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();
                 }
             );
         }