Bug 662 - Cosmetic: UI enhancement fixedgit add static/src/instancehandler/instance_l... 84/7384/1
authorMrityunjay Yadav <my00514913@techmahindra.com>
Wed, 3 Apr 2019 09:57:34 +0000 (15:27 +0530)
committeryadavmr <my00514913@techmahindra.com>
Thu, 4 Apr 2019 04:53:32 +0000 (10:23 +0530)
Change-Id: Ie35aff229eed5cebdc132695c93e83b0a5944907
Signed-off-by: yadavmr <my00514913@techmahindra.com>
static/src/instancehandler/instance_list.js

index 7fa6524..5580bbf 100644 (file)
@@ -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);
 
 };