changeset 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 0a7610758c42
children 6474b64045fb
files mercurial/templates/static/mercurial.js
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);