Show More
@@ -380,6 +380,11 b' function ajaxScrollInit(urlFormat,' | |||||
380 | format(urlFormat, {hash: nextHash}), |
|
380 | format(urlFormat, {hash: nextHash}), | |
381 | 'GET', |
|
381 | 'GET', | |
382 | function onstart() { |
|
382 | function onstart() { | |
|
383 | var message = { | |||
|
384 | class: 'scroll-loading', | |||
|
385 | text: 'Loading...' | |||
|
386 | }; | |||
|
387 | appendFormatHTML(container, messageFormat, message); | |||
383 | }, |
|
388 | }, | |
384 | function onsuccess(htmlText) { |
|
389 | function onsuccess(htmlText) { | |
385 | var m = htmlText.match(nextHashRegex); |
|
390 | var m = htmlText.match(nextHashRegex); | |
@@ -397,6 +402,7 b' function ajaxScrollInit(urlFormat,' | |||||
397 | function onerror(errorText) { |
|
402 | function onerror(errorText) { | |
398 | }, |
|
403 | }, | |
399 | function oncomplete() { |
|
404 | function oncomplete() { | |
|
405 | removeByClassName('scroll-loading'); | |||
400 | updateInitiated = false; |
|
406 | updateInitiated = false; | |
401 | scrollHandler(); |
|
407 | scrollHandler(); | |
402 | } |
|
408 | } |
General Comments 0
You need to be logged in to leave comments.
Login now