<commit_before>jQuery(document).ready(function ($) {


    //add class body
    if (active_tab) {
        $('body').addClass('js-' + active_tab);
    }

    if ($('.js-client').size()) {
    	//Place voir les operations button next to Ajouter / Modifier un client title
    	$('.voir-les-operations').css({marginLeft: '280px', position: 'absolute'});
    }
    
    
    /**
     * import initial
     */
    $('input[id=inputFile]').change(function () {
        $('#inputFileCover').val($(this).val());
    });
    
    
    
    $('#error_repost_show').die().live('click', function () {
        $('#importReportModal').modal('toggle');
        return false;
    });
    
    
    
    
    /**
     * document
     * */
    if ($('.js-document').size()) {

        symfony_ajax.behaviors.type_document = {
            attach:function (context) {
                var _uniqid = symfony_ajax.get_uniqid();

                if (_uniqid) {
                    $('#' + _uniqid + '_type_document', context).change(function () {

                    	$('#' + _uniqid + '_date_notaire, #' + _uniqid + '_date_apostille').attr('disabled', true);
                    	//$('#' + _uniqid + '_statut_document_notaire option:first, #' + _uniqid + '_statut_document_apostille option:first').attr('selected', true);
                        $('#sonata-ba-field-container-' + _uniqid + '_date_notaire, #sonata-ba-field-container-' + _uniqid + '_date_apostille, #sonata-ba-field-container-' + _uniqid + '_statut_document_notaire, #sonata-ba-field-container-' + _uniqid + '_statut_document_apostille')[['show', 'hide'][($(this).val() == 2 || $(this).val() == 6) ? 0 : 1]]();
                        $('#sonata-ba-field-container-' + _uniqid + '_preavis')[['show', 'hide'][($(this).val() == 1 || $(this).val() == 3) ? 0 : 1]]();

                        if ($(this).val() == 6){
                            $('#' + _uniqid + '_statut_document_notaire, #' + _uniqid + '_statut_document_apostille').each(function(){
                                if ($(this).val() == ''){
                                    $(this).val(1);
                                }
                            });
                        }
                        else {
                            $('#' + _uniqid + '_statut_document_notaire, #' + _uniqid + '_statut_document_apostille').val('');
                        }

                    }).trigger('change');

                    $('#sonata-ba-field-container-' + _uniqid + '_date_notaire').addClass('date_notaire');
                    $('#sonata-ba-field-container-' + _uniqid + '_statut_document_notaire').after('<div style="clear:both"></div>').addClass('statut_document_notaire');
                    $('#sonata-ba-field-container-' + _uniqid + '_date_apostille').addClass('date_apostille');
                    $('#sonata-ba-field-container-' + _uniqid + '_statut_document_apostille').addClass('statut_document_apostille');
                }
                
                
                
                $('#' + _uniqid + '_statut_document_notaire').change(function(){
                	if($(this).val() != '') {
                		$('#' + _uniqid + '_date_notaire').attr('disabled', false);
                	} else {
                		$('#' + _uniqid + '_date_notaire').attr('disabled', true);
                	}
                });
                

                $('#' + _uniqid + '_statut_document_apostille').change(function(){
                	if($(this).val() != '') {
                		$('#' + _uniqid + '_date_apostille').attr('disabled', false);
                	} else {
                		$('#' + _uniqid + '_date_notaire').attr('disabled', true);
                	}
                });

                
               
                
            }
        };

        $('.sonata-ba-list-field-text').removeAttr('objectid');
    }

    /**
     * garantie
     * */
<commit_msg>Allow document list rows to be clickable.<commit_after>jQuery(document).ready(function ($) {


    //add class body
    if (active_tab) {
        $('body').addClass('js-' + active_tab);
    }

    if ($('.js-client').size()) {
    	//Place voir les operations button next to Ajouter / Modifier un client title
    	$('.voir-les-operations').css({marginLeft: '280px', position: 'absolute'});
    }
    
    
    /**
     * import initial
     */
    $('input[id=inputFile]').change(function () {
        $('#inputFileCover').val($(this).val());
    });
    
    
    
    $('#error_repost_show').die().live('click', function () {
        $('#importReportModal').modal('toggle');
        return false;
    });
    
    
    
    
    /**
     * document
     * */
    if ($('.js-document').size()) {

        symfony_ajax.behaviors.type_document = {
            attach:function (context) {
                var _uniqid = symfony_ajax.get_uniqid();

                if (_uniqid) {
                    $('#' + _uniqid + '_type_document', context).change(function () {

                    	$('#' + _uniqid + '_date_notaire, #' + _uniqid + '_date_apostille').attr('disabled', true);
                    	//$('#' + _uniqid + '_statut_document_notaire option:first, #' + _uniqid + '_statut_document_apostille option:first').attr('selected', true);
                        $('#sonata-ba-field-container-' + _uniqid + '_date_notaire, #sonata-ba-field-container-' + _uniqid + '_date_apostille, #sonata-ba-field-container-' + _uniqid + '_statut_document_notaire, #sonata-ba-field-container-' + _uniqid + '_statut_document_apostille')[['show', 'hide'][($(this).val() == 2 || $(this).val() == 6) ? 0 : 1]]();
                        $('#sonata-ba-field-container-' + _uniqid + '_preavis')[['show', 'hide'][($(this).val() == 1 || $(this).val() == 3) ? 0 : 1]]();

                        if ($(this).val() == 6){
                            $('#' + _uniqid + '_statut_document_notaire, #' + _uniqid + '_statut_document_apostille').each(function(){
                                if ($(this).val() == ''){
                                    $(this).val(1);
                                }
                            });
                        }
                        else {
                            $('#' + _uniqid + '_statut_document_notaire, #' + _uniqid + '_statut_document_apostille').val('');
                        }

                    }).trigger('change');

                    $('#sonata-ba-field-container-' + _uniqid + '_date_notaire').addClass('date_notaire');
                    $('#sonata-ba-field-container-' + _uniqid + '_statut_document_notaire').after('<div style="clear:both"></div>').addClass('statut_document_notaire');
                    $('#sonata-ba-field-container-' + _uniqid + '_date_apostille').addClass('date_apostille');
                    $('#sonata-ba-field-container-' + _uniqid + '_statut_document_apostille').addClass('statut_document_apostille');
                }
                
                
                
                $('#' + _uniqid + '_statut_document_notaire').change(function(){
                	if($(this).val() != '') {
                		$('#' + _uniqid + '_date_notaire').attr('disabled', false);
                	} else {
                		$('#' + _uniqid + '_date_notaire').attr('disabled', true);
                	}
                });
                

                $('#' + _uniqid + '_statut_document_apostille').change(function(){
                	if($(this).val() != '') {
                		$('#' + _uniqid + '_date_apostille').attr('disabled', false);
                	} else {
                		$('#' + _uniqid + '_date_notaire').attr('disabled', true);
                	}
                });

                
               
                
            }
        };

        //$('.sonata-ba-list-field-text').removeAttr('objectid');
    }

    /**
     * garantie
     * */

{'fraction_non_alphanumeric': 0.18303230730094125, 'fraction_numerical': 0.003307046553039939, 'mean_word_length': 1.6070954907161803, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3139991', 'n_tokens_mistral': 2395, 'n_tokens_neox': 2312, 'n_words': 284}