Use parseInt with second param to make jslint happy.
svn path=/plone.app.discussion/trunk/; revision=45187
This commit is contained in:
parent
89ac3f6b86
commit
b68da9925b
@ -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++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user