aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/js/wizard/wizardTabAdvanced.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/js/wizard/wizardTabAdvanced.js')
-rw-r--r--apps/user_ldap/js/wizard/wizardTabAdvanced.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/user_ldap/js/wizard/wizardTabAdvanced.js b/apps/user_ldap/js/wizard/wizardTabAdvanced.js
index 26bcd15810e..d2c3b6d125d 100644
--- a/apps/user_ldap/js/wizard/wizardTabAdvanced.js
+++ b/apps/user_ldap/js/wizard/wizardTabAdvanced.js
@@ -139,6 +139,10 @@ OCA = OCA || {};
$element: $('#ldap_attr_address'),
setMethod: 'setAddressAttribute'
},
+ ldap_attr_twitter: {
+ $element: $('#ldap_attr_twitter'),
+ setMethod: 'setTwitterAttribute'
+ },
ldap_attr_organisation: {
$element: $('#ldap_attr_organisation'),
setMethod: 'setOrganisationAttribute'
@@ -424,6 +428,15 @@ OCA = OCA || {};
},
/**
+ * sets the attribute for the Nextcloud user profile twitter
+ *
+ * @param {string} attribute
+ */
+ setTwitterAttribute: function(attribute) {
+ this.setElementValue(this.managedItems.ldap_attr_twitter.$element, attribute);
+ },
+
+ /**
* sets the attribute for the Nextcloud user profile organisation
*
* @param {string} attribute