X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FLW-UI.git;a=blobdiff_plain;f=static%2Fsrc%2Fuserhandler%2Fuser_list.js;h=88f47707f5eb20f4294ae571e68aae5e07b5ac7b;hp=196b8788992491fd87c56b29b49d6a5226b40564;hb=4908f382154fddb84d72ce8d516229649c01b606;hpb=10b52d1480ad41e7a1d51575f1e5f4ea762b2dd6 diff --git a/static/src/userhandler/user_list.js b/static/src/userhandler/user_list.js index 196b878..88f4770 100644 --- a/static/src/userhandler/user_list.js +++ b/static/src/userhandler/user_list.js @@ -23,13 +23,12 @@ function openModalCreateUser(args) { } }); - - $('#modal_new_user').modal('show'); } -function deleteUser(delete_url) { - bootbox.confirm("Are you sure want to delete?", function (confirm) { +function deleteUser(user_id, name) { + var delete_url = '/admin/users/'+user_id+'/delete'; + bootbox.confirm("Are you sure want to delete "+name+"?", function (confirm) { if (confirm) { var dialog = bootbox.dialog({ message: '
Loading...
',