[PATCH] hgweb: escape class keyword when used as a js object property (issue4913)
Anton Shestakov
av6 at dwimlabs.net
Tue Oct 27 04:41:36 UTC 2015
# HG changeset patch
# User Anton Shestakov <av6 at dwimlabs.net>
# Date 1445920445 -28800
# Tue Oct 27 12:34:05 2015 +0800
# Branch stable
# Node ID 588069389474e5ee8e1100f6591a4808b887364d
# Parent a9ed5a8fc5e0554d5cb81b7206d2203cc49a2d23
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);
More information about the Mercurial-devel
mailing list