mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Fix avatar actions
Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
This commit is contained in:
parent
b2765939bd
commit
f4171c96eb
3 changed files with 10 additions and 4 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/'),
|
||||
|
|
|
|||
2
core/js/dist/unified-search.js
vendored
2
core/js/dist/unified-search.js
vendored
File diff suppressed because one or more lines are too long
2
core/js/dist/unified-search.js.map
vendored
2
core/js/dist/unified-search.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue