]> source.dussan.org Git - sonarqube.git/commitdiff
fix deletion of scm accounts
authorStas Vilchik <vilchiks@gmail.com>
Thu, 26 Feb 2015 08:24:00 +0000 (09:24 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 26 Feb 2015 11:28:08 +0000 (12:28 +0100)
server/sonar-web/src/main/webapp/WEB-INF/app/views/users/_create_form.html.erb

index b0bd112c40d26d644c73ef6eb15f19643ac0869a..f0821948851a0ce6d72c6ef2b012b4bb40952037 100644 (file)
@@ -50,8 +50,8 @@
 <script>
   $j("#user_create_form").modalForm();
 
-  $j('#user_create_form .delete').click(function () {
-    $j(this).parents('.scm_account').remove();
+  $j('#user_create_form').on('click', '.delete', function () {
+    $j(this).closest('.scm_account').remove();
     return false;
   });