# HG changeset patch # User Anton Shestakov # Date 1445920445 -28800 # Node ID 3ed635cb108e03370bbfb587170d623c2d73f618 # Parent 0a7610758c42dffbde5c61c08aed0615f34b7d0d hgweb: escape class keyword when used as a js object property (issue4913) diff -r 0a7610758c42 -r 3ed635cb108e mercurial/templates/static/mercurial.js --- a/mercurial/templates/static/mercurial.js Sat Oct 24 18:58:57 2015 +0900 +++ b/mercurial/templates/static/mercurial.js Tue Oct 27 12:34:05 2015 +0800 @@ -376,7 +376,7 @@ if (!nextPageVar) { var message = { - class: 'scroll-loading-info', + 'class': 'scroll-loading-info', text: 'No more entries' }; appendFormatHTML(container, messageFormat, message); @@ -388,7 +388,7 @@ 'GET', function onstart() { var message = { - class: 'scroll-loading', + 'class': 'scroll-loading', text: 'Loading...' }; appendFormatHTML(container, messageFormat, message); @@ -423,7 +423,7 @@ }, function onerror(errorText) { var message = { - class: 'scroll-loading-error', + 'class': 'scroll-loading-error', text: 'Error: ' + errorText }; appendFormatHTML(container, messageFormat, message);