Commit 41487dd0 authored by THEO GUILLON's avatar THEO GUILLON
Browse files

Merge branch...

Merge branch '393-les-retours-a-la-ligne-ne-sont-pas-pris-en-compte-dans-les-champs-de-formulaires-de-type' into '2.0.0'

Resolve "Les retours à la ligne ne sont pas pris en compte dans les champs de formulaires de type """

See merge request libriciel/pole-citoyens/web-DPO/web-DPO!396
parents 157edcd1 5c413d50
......@@ -1245,11 +1245,8 @@ let createForm = function(typeCreateForm) {
// Attribution les valeurs au champ "Label"
if ($(this).hasClass('texte')) {
let breakTag = (newContenuField || typeof newContenuField === 'undefined') ? '<br ' + '/>' : '<br>'
let test = (newContenuField + '').replace(/(\r\n|\n\r|\r|\n)/g, breakTag + '$1');
console.log(test);
$(idContainer).find('.ui-selected').find('h5').html(test);
// $(idContainer).find('.ui-selected').find('h5').html(newContenuField);
let text = (newContenuField + '').replace(/(\r\n|\n\r|\r|\n)/g, breakTag + '$1');
$(idContainer).find('.ui-selected').find('h5').html(text);
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment