<commit_before>(function($){

$(document).bind('fragment-ready', function(event) {
    $('#teaser-supertitle\\.teaserSupertitle', event.__target).bind(
        'change', function(){
            var value = $(this).val();
            $('#article-content-head\\.supertitle').val(value).focusout();
        });
});

}(jQuery));<commit_msg>Fixes #11737: Copy teaser title and -text to article area, too; don't overwrite existing values<commit_after>(function($){

var copy_to = function(target) {
    return function() {
        var src = $(this).val();
        if (! $(target).val()) {
            $(target).val(src).focusout();
        }
    };
};


$(document).bind('fragment-ready', function(event) {
    $('#teaser-supertitle\\.teaserSupertitle', event.__target).bind(
        'change', copy_to('#article-content-head\\.supertitle'));

    $('#teaser-title\\.teaserTitle', event.__target).bind(
        'change', copy_to('#article-content-head\\.title'));

    $('#teaser-text\\.teaserText', event.__target).bind(
        'change', copy_to('#article-content-head\\.subtitle'));
});

}(jQuery));
{'fraction_non_alphanumeric': 0.217351598173516, 'fraction_numerical': 0.0045662100456621, 'mean_word_length': 3.2980392156862743, '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': '5523553', 'n_tokens_mistral': 340, 'n_tokens_neox': 330, 'n_words': 52}