From: Mrityunjay Yadav Date: Wed, 3 Apr 2019 09:57:34 +0000 (+0530) Subject: Bug 662 - Cosmetic: UI enhancement fixedgit add static/src/instancehandler/instance_l... X-Git-Tag: v6.0.0~14 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F84%2F7384%2F1;p=osm%2FLW-UI.git Bug 662 - Cosmetic: UI enhancement fixedgit add static/src/instancehandler/instance_list.js Change-Id: Ie35aff229eed5cebdc132695c93e83b0a5944907 Signed-off-by: yadavmr --- diff --git a/static/src/instancehandler/instance_list.js b/static/src/instancehandler/instance_list.js index 7fa6524..5580bbf 100644 --- a/static/src/instancehandler/instance_list.js +++ b/static/src/instancehandler/instance_list.js @@ -156,11 +156,9 @@ var addFormGroup = function (event) { var $formGroup = $(this).closest('.form-group'); var $formGroupClone = $formGroup.clone(); - $(this) - .toggleClass('btn-success btn-add btn-danger btn-remove') - .html('–'); - $formGroupClone.find('input').val(''); + $formGroupClone.find('button').toggleClass('btn-success btn-add btn-danger btn-remove'); + $formGroupClone.find('button').text('–'); $formGroupClone.insertAfter($formGroup); };