summaryrefslogtreecommitdiffstats
path: root/settings/js/personal.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-11-08 22:08:19 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2015-11-20 16:05:43 +0100
commit0265bcfdae6eff2ea87eb0f6de66e2eacb590820 (patch)
tree45333175470f4a822c727ca065bf6e5cadfda424 /settings/js/personal.js
parent427d107b9f375f5667a3e8f40191edd46924fdb8 (diff)
downloadnextcloud-server-0265bcfdae6eff2ea87eb0f6de66e2eacb590820.tar.gz
nextcloud-server-0265bcfdae6eff2ea87eb0f6de66e2eacb590820.zip
Moved changedisplayname to usercontroller
Killed the old static route to change a users display name and moved it to a properly testable controller.
Diffstat (limited to 'settings/js/personal.js')
-rw-r--r--settings/js/personal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js
index 3439eba686f..c9280d31353 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -70,7 +70,7 @@ function changeDisplayName () {
// Serialize the data
var post = $("#displaynameform").serialize();
// Ajax foo
- $.post('ajax/changedisplayname.php', post, function (data) {
+ $.post(OC.generateUrl('/settings/users/{id}/displayName', {id: OC.currentUser}), post, function (data) {
if (data.status === "success") {
$('#oldDisplayName').val($('#displayName').val());
// update displayName on the top right expand button