##// END OF EJS Templates
hgweb: show message when an error occured during ajax loading
Alexander Plavin -
r19756:54981b89 default
parent child Browse files
Show More
@@ -366,6 +366,7 function ajaxScrollInit(urlFormat,
366
366
367 if (scrollHeight - (scrollTop + clientHeight) < 50) {
367 if (scrollHeight - (scrollTop + clientHeight) < 50) {
368 updateInitiated = true;
368 updateInitiated = true;
369 removeByClassName('scroll-loading-error');
369
370
370 if (!nextHash) {
371 if (!nextHash) {
371 var message = {
372 var message = {
@@ -400,6 +401,11 function ajaxScrollInit(urlFormat,
400 process_dates();
401 process_dates();
401 },
402 },
402 function onerror(errorText) {
403 function onerror(errorText) {
404 var message = {
405 class: 'scroll-loading-error',
406 text: 'Error: ' + errorText
407 };
408 appendFormatHTML(container, messageFormat, message);
403 },
409 },
404 function oncomplete() {
410 function oncomplete() {
405 removeByClassName('scroll-loading');
411 removeByClassName('scroll-loading');
General Comments 0
You need to be logged in to leave comments. Login now