Commit 5c413d50 authored by Théo GUILLON's avatar Théo GUILLON
Browse files

Correction : retour à la ligne sur le champ label

parent 157edcd1
......@@ -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