<commit_before>django.jQuery(function ($) {
    $(document).ready(function(){
        $('form').submit(function() {
            var status = document.getElementById("id_status");
            var resolution = document.getElementById("id_resolution");
            
            if (!status.options[status.selectedIndex].defaultSelected || !resolution.options[resolution.selectedIndex].defaultSelected) {
                var c = confirm("User who sent this errata will receive an email. Do you still want to continue?");
                return c;
            } else {
                return true;
            }
            
        });<commit_msg>Errata is now subtle when notifying about emailing errata submitters.<commit_after>django.jQuery(function ($) {
    $(document).ready(function(){
        var status = document.getElementById("id_status");
        var resolution = document.getElementById("id_resolution");

        var savebtn = $('input[name="_save"]');
        var savenewbtn = $('input[name="_saveasnew"]');
        var savecontbtn = $('input[name="_continue"]');

        $('#id_status, #id_resolution').change(function(){
            if (!status.options[status.selectedIndex].defaultSelected || !resolution.options[resolution.selectedIndex].defaultSelected) {
                savebtn.val('Save and email user');
                savenewbtn.val('Save as new and email user');
                savecontbtn.val('Save, email user, and continue editing');
            } else {
                savebtn.val('SAVE');
                savenewbtn.val('Save as new');
                savecontbtn.val('Save and continue editing');
            }
        });

        // Commented out as content team does not want to deal with popup.
        // $('form').submit(function() {
        //     if (!status.options[status.selectedIndex].defaultSelected || !resolution.options[resolution.selectedIndex].defaultSelected) {
        //         var c = confirm("User who sent this errata will receive an email. Do you still want to continue?");
        //         return c;
        //     } else {
        //         return true;
        //     }
        // });
{'fraction_non_alphanumeric': 0.1293624941833411, 'fraction_numerical': 0.0, 'mean_word_length': 2.1478770131771596, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5511924', 'n_tokens_mistral': 538, 'n_tokens_neox': 512, 'n_words': 128}