Mercurial > hg
comparison mercurial/templates/static/mercurial.js @ 26832:3ed635cb108e stable
hgweb: escape class keyword when used as a js object property (issue4913)
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 27 Oct 2015 12:34:05 +0800 |
parents | 55543ee545ab |
children | ad443e8d9334 |
comparison
equal
deleted
inserted
replaced
26831:0a7610758c42 | 26832:3ed635cb108e |
---|---|
374 removeByClassName('scroll-loading-error'); | 374 removeByClassName('scroll-loading-error'); |
375 container.lastElementChild.classList.add('scroll-separator'); | 375 container.lastElementChild.classList.add('scroll-separator'); |
376 | 376 |
377 if (!nextPageVar) { | 377 if (!nextPageVar) { |
378 var message = { | 378 var message = { |
379 class: 'scroll-loading-info', | 379 'class': 'scroll-loading-info', |
380 text: 'No more entries' | 380 text: 'No more entries' |
381 }; | 381 }; |
382 appendFormatHTML(container, messageFormat, message); | 382 appendFormatHTML(container, messageFormat, message); |
383 return; | 383 return; |
384 } | 384 } |
386 makeRequest( | 386 makeRequest( |
387 format(urlFormat, {next: nextPageVar}), | 387 format(urlFormat, {next: nextPageVar}), |
388 'GET', | 388 'GET', |
389 function onstart() { | 389 function onstart() { |
390 var message = { | 390 var message = { |
391 class: 'scroll-loading', | 391 'class': 'scroll-loading', |
392 text: 'Loading...' | 392 text: 'Loading...' |
393 }; | 393 }; |
394 appendFormatHTML(container, messageFormat, message); | 394 appendFormatHTML(container, messageFormat, message); |
395 }, | 395 }, |
396 function onsuccess(htmlText) { | 396 function onsuccess(htmlText) { |
421 | 421 |
422 nextPageVar = nextPageVarGet(htmlText, nextPageVar); | 422 nextPageVar = nextPageVarGet(htmlText, nextPageVar); |
423 }, | 423 }, |
424 function onerror(errorText) { | 424 function onerror(errorText) { |
425 var message = { | 425 var message = { |
426 class: 'scroll-loading-error', | 426 'class': 'scroll-loading-error', |
427 text: 'Error: ' + errorText | 427 text: 'Error: ' + errorText |
428 }; | 428 }; |
429 appendFormatHTML(container, messageFormat, message); | 429 appendFormatHTML(container, messageFormat, message); |
430 }, | 430 }, |
431 function oncomplete() { | 431 function oncomplete() { |