style/css/custom.js
// autocomplet search key for attach letter to file
autocomplet search key for attach letter to file
autocomplet search key for attach letter to file
function autocomplet_search_key() {
	var min_length = 0; 
	var keyword = $('#search_file').val();
	var base_url=$("#base_url").val();
	var csrf_test_name=$("input[name=csrf_test_name]").val();
	var url=base_url+"letter_to_file/search_file/";
	if (keyword.length >min_length) {
		$.ajax({
			url: url,
			type: 'POST',
			data: {keyword:keyword,csrf_test_name:csrf_test_name},
			success:function(data){
				$('#file_list').show();
				$('#file_list').html(data);
			}
		});
	} else {
		$('#authority_list').hide();
	}
}
function autocomplet_search_key ( ) { var min_length = 0 ; var keyword = $ ( '#search_file' ) . val ( ) ; var base_url = $ ( "#base_url" ) . val ( ) ; var csrf_test_name = $ ( "input[name=csrf_test_name]" ) . val ( ) ; var url = base_url + "letter_to_file/search_file/" ; if ( keyword . length > min_length ) { $ . ajax ( { url : url , type : 'POST' , data : { keyword : keyword , csrf_test_name : csrf_test_name } , success : function ( data ) { $ ( '#file_list' ) . show ( ) ; $ ( '#file_list' ) . html ( data ) ; } } ) ; } else { $ ( '#authority_list' ) . hide ( ) ; } }
autocomplet search key for attach letter to file
autocomplet search key for attach letter to file