Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
creesch committed Sep 9, 2021
2 parents 142da74 + 774c9b5 commit 65084bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions extension/data/modules/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,10 @@ function tbconfig () {
$body.css('overflow', 'auto');

$('.tb-config-color-chooser').remove();
config = TBCore.config;
sortReasons = [];
subreddit = null;
postFlairTemplates = null;
});

// now we can play around!
Expand Down
12 changes: 6 additions & 6 deletions extension/data/modules/removalreasons.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,6 @@ function removalreasons () {
thingSubreddit,
isComment = false; // default to false for new Reddit

// If the shift key was pressed, remove without a removal reason,
// unless this is the explicit "Add removal reason" button.
if (event.shiftKey && !$button.hasClass('tb-add-removal-reason')) {
return;
}

// For now, removals on Toolbox-generated posts/comments work the same way as on old Reddit (without jsAPI)
if (TBCore.isOldReddit || $button.is('.tb-submission-button-remove, .tb-comment-button-remove')) {
const $yes = $button.find('.yes')[0],
Expand All @@ -223,6 +217,12 @@ function removalreasons () {
}
}

// If the shift key was pressed, remove without a removal reason,
// unless this is the explicit "Add removal reason" button.
if (event.shiftKey && !$button.hasClass('tb-add-removal-reason')) {
return;
}

const info = await TBCore.getApiThingInfo(thingID, thingSubreddit, false);
// Get link/comment attributes
const data = {
Expand Down

0 comments on commit 65084bc

Please sign in to comment.