mirror of
https://github.com/nextcloud/server.git
synced 2024-07-28 20:16:02 +02:00
fix number and insert position when adding/copying a config
This commit is contained in:
parent
00c2970547
commit
3abc72dad8
@ -205,8 +205,8 @@ OCA = OCA || {};
|
||||
onNewConfiguration: function(view, result) {
|
||||
if(result.isSuccess === true) {
|
||||
$(view.configChooserID + ' option:selected').removeAttr('selected');
|
||||
var html = '<option value="'+result.configPrefix+'" selected="selected">'+t('user_ldap','{nthServer}. Server', {nthServer: $(view.configChooserID + ' option').length})+'</option>';
|
||||
$(view.configChooserID + ' option:last').before(html);
|
||||
var html = '<option value="'+result.configPrefix+'" selected="selected">'+t('user_ldap','{nthServer}. Server', {nthServer: $(view.configChooserID + ' option').length + 1})+'</option>';
|
||||
$(view.configChooserID + ' option:last').after(html);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user