Fix avatar in /pad
This commit is contained in:
@@ -1172,6 +1172,14 @@ define([
|
|||||||
return button;
|
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 = [
|
common.avatarAllowedTypes = [
|
||||||
'image/png',
|
'image/png',
|
||||||
'image/jpeg',
|
'image/jpeg',
|
||||||
|
|||||||
@@ -171,11 +171,6 @@ define([
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$(window.document).on('decryption', function (e) {
|
|
||||||
var decrypted = e.originalEvent;
|
|
||||||
if (decrypted.callback) { decrypted.callback(); }
|
|
||||||
});
|
|
||||||
|
|
||||||
return DiffMd;
|
return DiffMd;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,11 @@ define([
|
|||||||
|
|
||||||
$(window.document).on('decryption', function (e) {
|
$(window.document).on('decryption', function (e) {
|
||||||
var decrypted = e.originalEvent;
|
var decrypted = e.originalEvent;
|
||||||
if (decrypted.callback) { decrypted.callback(); }
|
if (decrypted.callback) {
|
||||||
|
var cb = decrypted.callback;
|
||||||
|
decrypted.callback = undefined;
|
||||||
|
cb();
|
||||||
|
}
|
||||||
|
|
||||||
console.log(decrypted);
|
console.log(decrypted);
|
||||||
$dlview.show();
|
$dlview.show();
|
||||||
|
|||||||
Reference in New Issue
Block a user