[PATCH 1 of 3] hgweb: show a message when there are no more entries in the list

Alexander Plavin alexander at plav.in
Thu Sep 19 12:37:38 UTC 2013


# HG changeset patch
# User Alexander Plavin <alexander at plav.in>
# Date 1378459858 -14400
#      Fri Sep 06 13:30:58 2013 +0400
# Node ID c3f4ef9336173e7c11ec62358ccc1910c76dc590
# Parent  0032f7b54b7bb23b35574f774d37ba763a8e5199
hgweb: show a message when there are no more entries in the list

diff -r 0032f7b54b7b -r c3f4ef933617 mercurial/templates/static/mercurial.js
--- a/mercurial/templates/static/mercurial.js	Fri Sep 06 13:30:57 2013 +0400
+++ b/mercurial/templates/static/mercurial.js	Fri Sep 06 13:30:58 2013 +0400
@@ -368,6 +368,11 @@
             updateInitiated = true;
 
             if (!nextHash) {
+                var message = {
+                    class: 'scroll-loading-info',
+                    text: 'No more entries'
+                };
+                appendFormatHTML(container, messageFormat, message);
                 return;
             }
 


More information about the Mercurial-devel mailing list