# HG changeset patch # User Anton Shestakov # Date 2015-10-27 04:34:05 # Node ID 3ed635cb108e03370bbfb587170d623c2d73f618 # Parent 0a7610758c42dffbde5c61c08aed0615f34b7d0d hgweb: escape class keyword when used as a js object property (issue4913) diff --git a/mercurial/templates/static/mercurial.js b/mercurial/templates/static/mercurial.js --- a/mercurial/templates/static/mercurial.js +++ b/mercurial/templates/static/mercurial.js @@ -376,7 +376,7 @@ function ajaxScrollInit(urlFormat, if (!nextPageVar) { var message = { - class: 'scroll-loading-info', + 'class': 'scroll-loading-info', text: 'No more entries' }; appendFormatHTML(container, messageFormat, message); @@ -388,7 +388,7 @@ function ajaxScrollInit(urlFormat, 'GET', function onstart() { var message = { - class: 'scroll-loading', + 'class': 'scroll-loading', text: 'Loading...' }; appendFormatHTML(container, messageFormat, message); @@ -423,7 +423,7 @@ function ajaxScrollInit(urlFormat, }, function onerror(errorText) { var message = { - class: 'scroll-loading-error', + 'class': 'scroll-loading-error', text: 'Error: ' + errorText }; appendFormatHTML(container, messageFormat, message);