Wedge
Public area => The Pub => Bug reports => Topic started by: Pandos on November 2nd, 2012, 02:19 PM
-
Deleting of posts by checkbox fails. If you check one post, Remove selected (1) appears in the bar under this post. But if you click "OK" deleting fails. Deleting complete threads from moderation panel is working fine.
-
This is within a topic, yes?
-
Yes.
-
OK, so the cause of this is in topic.js:
$('.' + opt.sClass).each(function () {
$('<input type="checkbox" name="msgs[]" value="' + this.id.substr(17) + '"></input>')
.click(handleClick)
.appendTo(this);
});
this.id.substr(17) isn't returning anything. What needs to happen is that we need to traverse back up the hierarchy to find the #msgX up the page - or we otherwise embed the id somewhere directly into the .inline_mod_check span as added in Display.template.php.