mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Remove unnecessary setTimeout calls for zoom adjustment in logo and favicon cropping
This commit is contained in:
parent
da38e8f554
commit
549ba7c3ee
1 changed files with 0 additions and 11 deletions
|
@ -596,12 +596,7 @@ if (User::isAdmin()) {
|
|||
reader.onload = function(e) {
|
||||
c.croppie('bind', {
|
||||
url: e.target.result
|
||||
}).then(function() {
|
||||
setTimeout(() => {
|
||||
c.croppie('setZoom', 1);
|
||||
}, 100);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
reader.readAsDataURL($(input)[0].files[0]);
|
||||
|
@ -701,9 +696,6 @@ if (User::isAdmin()) {
|
|||
height: 70
|
||||
}
|
||||
});
|
||||
setTimeout(function() {
|
||||
logoCrop.croppie('setZoom', 1);
|
||||
}, 1000);
|
||||
|
||||
|
||||
$('#favicon-result-btn').on('click', function(ev) {
|
||||
|
@ -733,9 +725,6 @@ if (User::isAdmin()) {
|
|||
height: 180
|
||||
}
|
||||
});
|
||||
setTimeout(function() {
|
||||
faviconCrop.croppie('setZoom', 1);
|
||||
}, 1000);
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue