aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-02-26 09:24:00 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-02-26 12:28:08 +0100
commitbf13a2c530528cd6d1b899ecbe1cff52a6bdcada (patch)
treeace2b6c6067cc677167348394d8e32e25fe2b700
parentdcb0457a1a79f9baa412849bd1524c14032f5c0f (diff)
downloadsonarqube-bf13a2c530528cd6d1b899ecbe1cff52a6bdcada.tar.gz
sonarqube-bf13a2c530528cd6d1b899ecbe1cff52a6bdcada.zip
fix deletion of scm accounts
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/views/users/_create_form.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/users/_create_form.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/users/_create_form.html.erb
index b0bd112c40d..f0821948851 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/users/_create_form.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/users/_create_form.html.erb
@@ -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;
});