summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-12-05 12:06:05 +0100
committerGitHub <noreply@github.com>2016-12-05 12:06:05 +0100
commitdecce7ec8db5a24765a23458d3caa63c44dfdfb4 (patch)
tree6e515d3752d92adb8dedce51d0446ecb1cb4ad28 /settings
parent5d301ed95d1f508c9008498bdffd7e842f1c5222 (diff)
parent46abd9e3d99a5cc6c07c948c81bacc15317164a8 (diff)
downloadnextcloud-server-decce7ec8db5a24765a23458d3caa63c44dfdfb4.tar.gz
nextcloud-server-decce7ec8db5a24765a23458d3caa63c44dfdfb4.zip
Merge pull request #2502 from nextcloud/personal-settings-dead-code
remove dead js code from personal settings
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');