Skip to content

Commit

Permalink
fix bugs on the discussion moderation form
Browse files Browse the repository at this point in the history
  • Loading branch information
brondsem committed Aug 9, 2024
1 parent adb3f5e commit f8e56d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Allura/allura/controllers/discuss.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,12 +559,12 @@ def save_moderation(self, post=[], delete=None, spam=None, approve=None, **kw):

if posted:
if delete:
count += 1
# full, for real, delete since this is post was never visible and denied by admin.
posted.delete()
# If we just deleted the last post in the
# thread, delete the thread.
if posted.thread and posted.thread.num_replies == 0:
count += 1
posted.thread.delete()
elif spam and posted.status != 'spam':
count += 1
Expand Down
2 changes: 1 addition & 1 deletion Allura/allura/lib/widgets/discuss.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def resources(self):
(function($){
var tbl = $('form table');
var checkboxes = $('input[type=checkbox]', tbl);
$('a[href=#]', tbl).click(function () {
$('a[href="#"]', tbl).click(function () {
checkboxes.each(function () {
if(this.checked) { this.checked = false; }
else { this.checked = true; }
Expand Down

0 comments on commit f8e56d4

Please sign in to comment.