Skip to content
Snippets Groups Projects
Commit 76ce8c6c authored by Robin Appelman's avatar Robin Appelman
Browse files

dont show new user when an error occured

parent b8e01939
No related branches found
No related tags found
Loading
......@@ -133,6 +133,7 @@ $(document).ready(function(){
}
var password=$('#newuserpassword').val();
var groups=$('#newusergroups').prev().children('div').data('settings').checked;
var tr
$.post(
OC.filePath('settings','ajax','createuser.php'),
{
......@@ -141,10 +142,12 @@ $(document).ready(function(){
groups:groups,
},
function(result){
if(result.status!='success'){
tr.remove();
}
}
);
var tr=$('#content table tbody tr').first().clone();
tr=$('#content table tbody tr').first().clone();
tr.attr('data-uid',username);
tr.find('td.name').text(username);
var select=$('<select multiple="multiple" data-placehoder="Groups" title="Groups">');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment