summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2016-12-05 10:50:04 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2016-12-05 10:50:04 +0100
commit46abd9e3d99a5cc6c07c948c81bacc15317164a8 (patch)
tree470a73fe527d86e3e22c416721cd16e0dbe38529 /settings
parenteeb81ec783e6e555aa8f1ac3eaa806b3c9dacaf7 (diff)
downloadnextcloud-server-46abd9e3d99a5cc6c07c948c81bacc15317164a8.tar.gz
nextcloud-server-46abd9e3d99a5cc6c07c948c81bacc15317164a8.zip
remove dead js code from personal settings
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'settings')
-rw-r--r--settings/js/personal.js55
1 files changed, 0 insertions, 55 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js
index 9045851ba0c..d1dd8c09ec1 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -46,61 +46,6 @@ jQuery.fn.keyUpDelayedOrEnter = function (callback, allowEmptyValue) {
});
};
-
-/**
- * Post the email address change to the server.
- */
-function changeEmailAddress () {
- var emailInfo = $('#email');
- if (emailInfo.val() === emailInfo.defaultValue) {
- return;
- }
- emailInfo.defaultValue = emailInfo.val();
- OC.msg.startSaving('#lostpassword .msg');
- var post = $("#lostpassword").serializeArray();
- $.ajax({
- type: 'PUT',
- url: OC.generateUrl('/settings/users/{id}/mailAddress', {id: OC.currentUser}),
- data: {
- mailAddress: post[0].value
- }
- }).done(function(result){
- // I know the following 4 lines look weird, but that is how it works
- // in jQuery - for success the first parameter is the result
- // for failure the first parameter is the result object
- OC.msg.finishedSaving('#lostpassword .msg', result);
- }).fail(function(result){
- OC.msg.finishedError('#lostpassword .msg', result.responseJSON.message);
- });
-}
-
-/**
- * Post the display name change to the server.
- */
-function changeDisplayName () {
- if ($('#displayName').val() !== '') {
- OC.msg.startSaving('#displaynameform .msg');
- // Serialize the data
- var post = $("#displaynameform").serialize();
- // Ajax foo
- $.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
- $('#expandDisplayName').text($('#displayName').val());
- // update avatar if avatar is available
- if(!$('#removeavatar').hasClass('hidden')) {
- updateAvatar();
- }
- }
- else {
- $('#newdisplayname').val(data.data.displayName);
- }
- OC.msg.finishedSaving('#displaynameform .msg', data);
- });
- }
-}
-
function updateAvatar (hidedefault) {
var $headerdiv = $('#header .avatardiv');
var $displaydiv = $('#displayavatar .avatardiv');