summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/settings/js/settings/personalInfo.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/settings/js/settings/personalInfo.js b/apps/settings/js/settings/personalInfo.js
index f53e120dcf5..a6c57e55d7c 100644
--- a/apps/settings/js/settings/personalInfo.js
+++ b/apps/settings/js/settings/personalInfo.js
@@ -313,7 +313,10 @@ window.addEventListener('DOMContentLoaded', function () {
}
});
- $('#selectavatar').click(function () {
+ $('#selectavatar').click(function (event) {
+ event.stopPropagation();
+ event.preventDefault();
+
OC.dialogs.filepicker(
t('settings', "Select a profile picture"),
function (path) {
@@ -345,7 +348,10 @@ window.addEventListener('DOMContentLoaded', function () {
);
});
- $('#removeavatar').click(function () {
+ $('#removeavatar').click(function (event) {
+ event.stopPropagation();
+ event.preventDefault();
+
$.ajax({
type: 'DELETE',
url: OC.generateUrl('/avatar/'),