You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
Fix Upload and remove last part of button animation.
Former-commit-id: 3f427b6f34b0a9498c883a15fce396c14640f8f0 [formerly 514a1adf5ff43ba73bb9b13c59d4089b3a72c639] [formerly f0ebafb4fc9b6067ec6c95c881b2652dd2df00f8 [formerly 973d4380df]]
Former-commit-id: 02698fd8f45ce1b5c8d9b3b21bc85ccd42e63b11 [formerly 5eb200cf02ae14d57e14e024ee798fe5dad87a3c]
Former-commit-id: 835d7ed9789dc51311f0c943f3f8f7f01398e26d
This commit is contained in:
@@ -26,26 +26,11 @@ function done (button, success = true) {
|
||||
|
||||
el.style.opacity = 0
|
||||
|
||||
let third = () => {
|
||||
el.innerHTML = el.dataset.icon
|
||||
el.style.opacity = null
|
||||
}
|
||||
|
||||
let second = () => {
|
||||
el.style.opacity = 0
|
||||
setTimeout(third, 200)
|
||||
}
|
||||
|
||||
let first = () => {
|
||||
setTimeout(() => {
|
||||
el.classList.remove('spin')
|
||||
el.innerHTML = success
|
||||
? 'done'
|
||||
: 'close'
|
||||
el.innerHTML = el.dataset.icon
|
||||
el.style.opacity = 1
|
||||
setTimeout(second, 200)
|
||||
}
|
||||
|
||||
setTimeout(first, 200)
|
||||
}, 200)
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user