Fix avatar in /pad

This commit is contained in:
yflory
2017-07-03 12:25:05 +02:00
parent 70c9f3df75
commit 991cb896bd
3 changed files with 13 additions and 6 deletions

View File

@@ -1172,6 +1172,14 @@ define([
return button;
};
$(window.document).on('decryption', function (e) {
var decrypted = e.originalEvent;
if (decrypted.callback) {
var cb = decrypted.callback;
decrypted.callback = undefined;
cb();
}
});
common.avatarAllowedTypes = [
'image/png',
'image/jpeg',

View File

@@ -171,11 +171,6 @@ define([
}
};
$(window.document).on('decryption', function (e) {
var decrypted = e.originalEvent;
if (decrypted.callback) { decrypted.callback(); }
});
return DiffMd;
});

View File

@@ -91,7 +91,11 @@ define([
$(window.document).on('decryption', function (e) {
var decrypted = e.originalEvent;
if (decrypted.callback) { decrypted.callback(); }
if (decrypted.callback) {
var cb = decrypted.callback;
decrypted.callback = undefined;
cb();
}
console.log(decrypted);
$dlview.show();