group name input shall not vanish upon click, plus cleanup (groups do not have home folders)
This commit is contained in:
parent
749afe74df
commit
330dfeb46b
1 changed files with 0 additions and 19 deletions
|
@ -71,12 +71,6 @@ $(document).ready( function () {
|
|||
e.stopPropagation();
|
||||
$('#newgroup-form').show();
|
||||
$('#newgroup-init').hide();
|
||||
$(document).click( function (e) {
|
||||
if (e.target.id !== 'newgroup-form') {
|
||||
$("#newgroup-form").hide();
|
||||
$("#newgroup-init").show();
|
||||
}
|
||||
});
|
||||
$('#newgroupname').focus();
|
||||
});
|
||||
|
||||
|
@ -104,20 +98,7 @@ $(document).ready( function () {
|
|||
var addedGroups = result.data.groupname;
|
||||
UserList.availableGroups = $.unique($.merge(UserList.availableGroups, addedGroups));
|
||||
}
|
||||
if (result.data.homeExists){
|
||||
OC.Notification.hide();
|
||||
OC.Notification.show(t('settings', 'Warning: Home directory for user "{group}" already exists', {group: result.data.groupname}));
|
||||
if (UserList.notificationTimeout){
|
||||
window.clearTimeout(UserList.notificationTimeout);
|
||||
}
|
||||
UserList.notificationTimeout = window.setTimeout(
|
||||
function(){
|
||||
OC.Notification.hide();
|
||||
UserList.notificationTimeout = null;
|
||||
}, 10000);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
)
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue