X-Git-Url: https://git.p6c8.net/jirafeau/jirafeau.git/blobdiff_plain/249f5f73101449bcda4b4fdcbc549946f0d938c5..39ff6f56cbd8157556111441c987f2dd3258090a:/lib/functions.js.php diff --git a/lib/functions.js.php b/lib/functions.js.php index 3574891..cafecaf 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -430,9 +430,9 @@ function classic_upload (file, time, password, one_time) req.upload.addEventListener ("progress", upload_progress, false); req.addEventListener ("error", XHRErrorHandler, false); req.addEventListener ("abort", XHRErrorHandler, false); - req.onreadystatechange = function () + req.onload = function () { - if (req.readyState == 4 && req.status == 200) + if (req.status === 200) { var res = req.responseText;