Pandos

  • Living on the edge of Wedge
  • Posts: 635
Removing Posts not working
« 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.
# dpkg-reconfigure brain
error: brain is not installed or configured

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Pandos

  • Living on the edge of Wedge
  • Posts: 635

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Removing Posts not working
« Reply #3, on November 2nd, 2012, 04:15 PM »
OK, so the cause of this is in topic.js:

Code: [Select]
$('.' + 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.