Skip to content

Commit

Permalink
FIX bug when adding widget
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanMattei committed Apr 28, 2017
1 parent 1f36ab7 commit d0cea32
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scala/forms_play/public/javascripts/formInteractions.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ function cloneWidget(widget) {
console.log("nombre de widgets : "+cardinal);

var widgetName = decodeURIComponent(widget.attr("name")).split("+")
if (widgetName[2][0] == '<' ){
if (widgetName[2][0] == '<' )
widgetName = widgetName[0] +'+'+widgetName[1]+'+<>+.'
}else{
else
widgetName = widgetName[0] +'+'+widgetName[1]+'+""+.'
}

addedWidget
.val('')
Expand Down

0 comments on commit d0cea32

Please sign in to comment.