Patchwork [4,of,9,V2] hgweb: show a message when there are no more entries in the list

login
register
mail settings
Submitter Alexander Plavin
Date Aug. 17, 2013, 10:33 p.m.
Message ID <e80fe9b70c6fcf6a5d2b.1376778789@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/2214/
State Superseded
Commit c35e8805cf5344909b6637429bdbd7f9d37c3e27
Headers show

Comments

Alexander Plavin - Aug. 17, 2013, 10:33 p.m.
# HG changeset patch
# User Alexander Plavin <alexander@plav.in>
# Date 1376754663 -14400
#      Sat Aug 17 19:51:03 2013 +0400
# Node ID e80fe9b70c6fcf6a5d2bd540782574b723d56806
# Parent  a646de4ac36ab29a648e26b9b302821da91955e6
hgweb: show a message when there are no more entries in the list

Patch

diff -r a646de4ac36a -r e80fe9b70c6f mercurial/templates/static/mercurial.js
--- a/mercurial/templates/static/mercurial.js	Sat Aug 17 22:43:14 2013 +0400
+++ b/mercurial/templates/static/mercurial.js	Sat Aug 17 19:51:03 2013 +0400
@@ -369,6 +369,11 @@ 
             container.lastElementChild.classList.add('scroll-separator');
 
             if (!nextHash) {
+                var message = {
+                    class: 'scroll-loading-info',
+                    text: 'No more entries'
+                };
+                appendFormatHTML(container, messageFormat, message);
                 return;
             }