Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix avatar actions
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Jun 15, 2021
commit cd8386be046e6ef2f6cd336d39e1e0aec815b3ab
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