HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
File: /volume1/web/wp-content/plugins.hold/polylang/js/user.js
jQuery( document ).ready(function( $ ) {
	// biography
	// FIXME there is probably a more efficient way to do this
	var td = $( '#description' ).parent();
	var d = $( '#description' ).clone();
	var span = td.children( '.description' ).clone();
	td.children().remove();

	$( '.biography' ).each(function(){
		lang = $( this ).attr( 'name' ).split( '___' );
		desc = d.clone();
		desc.attr( 'name', 'description_' + lang[0] );
		desc.html( $( this ).val() );
		td.append( '<div>' + lang[1] + '</div' );
		td.append( desc );
	});

	td.append( '<br />' );
	td.append( span );
});