hgweb: escape class keyword when used as a js object property (
issue4913)
--- 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);