Use parseInt with second param to make jslint happy.

svn path=/plone.app.discussion/trunk/; revision=45187
This commit is contained in:
Timo Stollenwerk 2010-11-04 14:37:18 +00:00
parent 89ac3f6b86
commit b68da9925b

View File

@ -187,7 +187,7 @@
var comment = $(this); var comment = $(this);
var clss = comment.attr('class'); var clss = comment.attr('class');
// remove replies // 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 // selector for all the following elements of lower level
var selector = ".replyTreeLevel" + treelevel; var selector = ".replyTreeLevel" + treelevel;
for (var i = 0; i < treelevel; i++) { for (var i = 0; i < treelevel; i++) {