From ec1b981ac42a9bda48b1bf86c91e3621498fd932 Mon Sep 17 00:00:00 2001 From: Tom Ladendorf Date: Fri, 6 Nov 2015 11:08:03 -0600 Subject: [PATCH] Fixed image saving for settings --- app/settings/account-info/account-info.controller.js | 2 +- app/settings/edit-profile/edit-profile.controller.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/settings/account-info/account-info.controller.js b/app/settings/account-info/account-info.controller.js index 8effdeaaf..d7374f1d4 100644 --- a/app/settings/account-info/account-info.controller.js +++ b/app/settings/account-info/account-info.controller.js @@ -51,7 +51,7 @@ } } }); - }); + }, 400); } function updateCountry(angucompleteCountryObj) { diff --git a/app/settings/edit-profile/edit-profile.controller.js b/app/settings/edit-profile/edit-profile.controller.js index e750cc226..7c908d47b 100644 --- a/app/settings/edit-profile/edit-profile.controller.js +++ b/app/settings/edit-profile/edit-profile.controller.js @@ -113,6 +113,7 @@ .then(ImageService.createFileRecord) .then(function(newPhotoURL) { vm.userData.photoURL = newPhotoURL; + userData.photoURL = newPhotoURL; $rootScope.$broadcast(CONSTANTS.EVENT_PROFILE_UPDATED); }); }