From 9817683d992607fc02f3ad7bf50068f619dab853 Mon Sep 17 00:00:00 2001 From: Claire DELBOS Date: Fri, 31 Mar 2017 14:28:27 +0200 Subject: [PATCH] SD-29 re-js little fix --- application/views/scripts/profil/help.phtml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/views/scripts/profil/help.phtml b/application/views/scripts/profil/help.phtml index 83ca0210..1fd71d54 100644 --- a/application/views/scripts/profil/help.phtml +++ b/application/views/scripts/profil/help.phtml @@ -29,6 +29,12 @@ function setHelpVal(obj){ }else{ iref=iref.replace(chp,""); iref=iref.replace(",,",","); + if(iref.substr(0,1)==","){ + iref=iref.substr(1); + } + if(iref.substr(iref.length-1,1)==","){ + iref=iref.substr(0,iref.length-1); + } $('input[name=key?>]').val(iref); } }