ldc-sbv/pole-sbv-content/plugins/polylang/js/user.min.js
Thibault Richy 46330c5d4d Traduction
2017-11-17 16:22:31 +01:00

1 line
392 B
JavaScript

jQuery(document).ready(function(e){var n=e("#description").parent(),d=e("#description").clone(),i=n.children(".description").clone();n.children().remove(),e(".biography").each(function(){lang=e(this).attr("name").split("___"),desc=d.clone(),desc.attr("name","description_"+lang[0]),desc.html(e(this).val()),n.append("<div>"+lang[1]+"</div"),n.append(desc)}),n.append("<br />"),n.append(i)});