From b68da9925bfb5269b697ab5f4e4dc8f1b95da72b Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Thu, 4 Nov 2010 14:37:18 +0000 Subject: [PATCH] Use parseInt with second param to make jslint happy. svn path=/plone.app.discussion/trunk/; revision=45187 --- plone/app/discussion/browser/javascripts/comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plone/app/discussion/browser/javascripts/comments.js b/plone/app/discussion/browser/javascripts/comments.js index 1b23ee2..bb7335b 100644 --- a/plone/app/discussion/browser/javascripts/comments.js +++ b/plone/app/discussion/browser/javascripts/comments.js @@ -187,7 +187,7 @@ var comment = $(this); var clss = comment.attr('class'); // remove replies - var treelevel = parseInt(clss[clss.indexOf('replyTreeLevel') + 'replyTreeLevel'.length]); + var treelevel = parseInt(clss[clss.indexOf('replyTreeLevel') + 'replyTreeLevel'.length], 10); // selector for all the following elements of lower level var selector = ".replyTreeLevel" + treelevel; for (var i = 0; i < treelevel; i++) {