fix number and insert position when adding/copying a config
This commit is contained in:
parent
00c2970547
commit
3abc72dad8
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue