Skip to content

Commit

Permalink
Fix avatar actions
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Jun 15, 2021
1 parent b276593 commit f867655
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions apps/settings/js/settings/personalInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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/'),
Expand Down

0 comments on commit f867655

Please sign in to comment.