-
-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add rewrite-subject flag to email-edit form; hide spam-related settin…
…gs if 'bypass_spam' is activated; add possibility to disable rejection of spam-mails, refs #1282 Signed-off-by: Michael Kaufmann <[email protected]>
- Loading branch information
Showing
10 changed files
with
103 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
export default function () { | ||
$(function () { | ||
|
||
/** | ||
* bypass spam - hide unnecessary/unused sections | ||
*/ | ||
if ($('#id') && $('#bypass_spam').is(':checked')) { | ||
$('#spam_tag_level').closest('.row').addClass('d-none'); | ||
$('#spam_rewrite_subject').closest('.row').addClass('d-none'); | ||
$('#spam_kill_level').closest('.row').addClass('d-none'); | ||
$('#policy_greylist').closest('.row').addClass('d-none'); | ||
} | ||
|
||
/** | ||
* toggle show/hide of sections in case of bypass spam flag | ||
*/ | ||
$('#bypass_spam').on('click', function () { | ||
if ($(this).is(':checked')) { | ||
// hide unnecessary sections | ||
$('#spam_tag_level').closest('.row').addClass('d-none'); | ||
$('#spam_rewrite_subject').closest('.row').addClass('d-none'); | ||
$('#spam_kill_level').closest('.row').addClass('d-none'); | ||
$('#policy_greylist').closest('.row').addClass('d-none'); | ||
} else { | ||
// show sections | ||
$('#spam_tag_level').closest('.row').removeClass('d-none'); | ||
$('#spam_rewrite_subject').closest('.row').removeClass('d-none'); | ||
$('#spam_kill_level').closest('.row').removeClass('d-none'); | ||
$('#policy_greylist').closest('.row').removeClass('d-none'); | ||
} | ||
}) | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters