mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
Fix avatar actions
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
eb4e4c462b
commit
cd8386be04
1 changed files with 8 additions and 2 deletions
|
|
@ -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/'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue