summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-04-09 14:44:40 +0200
committerArthur Schiwon <blizzz@owncloud.com>2015-04-09 14:44:40 +0200
commit3abc72dad8f1efa5722a24aa2366c6086899196c (patch)
treefb650f3d9072e793d8efd230578206fb39d968f2 /apps/user_ldap/js
parent00c29705470141ff0d4d9f72afbbac0b1369eb35 (diff)
downloadnextcloud-server-3abc72dad8f1efa5722a24aa2366c6086899196c.tar.gz
nextcloud-server-3abc72dad8f1efa5722a24aa2366c6086899196c.zip
fix number and insert position when adding/copying a config
Diffstat (limited to 'apps/user_ldap/js')
-rw-r--r--apps/user_ldap/js/wizard/wizardTabElementary.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/js/wizard/wizardTabElementary.js b/apps/user_ldap/js/wizard/wizardTabElementary.js
index f4a966328c1..c7767b9cf66 100644
--- a/apps/user_ldap/js/wizard/wizardTabElementary.js
+++ b/apps/user_ldap/js/wizard/wizardTabElementary.js
@@ -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);
}
},