Fix undefined croppie blocking avatar upload
This commit is contained in:
parent
6e5684c9ae
commit
9ecd90218c
@ -260,6 +260,10 @@ define([
|
|||||||
'class': 'cp-app-profile-resizer'
|
'class': 'cp-app-profile-resizer'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (typeof ($croppie.croppie) !== "function") {
|
||||||
|
return void cb(file);
|
||||||
|
}
|
||||||
|
|
||||||
var todo = function () {
|
var todo = function () {
|
||||||
UI.confirm($croppie[0], function (yes) {
|
UI.confirm($croppie[0], function (yes) {
|
||||||
if (!yes) { return; }
|
if (!yes) { return; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user