Selaa lähdekoodia

maybe?

master
Pascal Gloor 6 vuotta sitten
vanhempi
commit
e4c7a4037a
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      www/js/autodoc.js

+ 2
- 2
www/js/autodoc.js Näytä tiedosto

xhr: function() xhr: function()
{ {
var xhr = $.ajaxSettings.xhr(); var xhr = $.ajaxSettings.xhr();
xhr.upload.addEventListener("progress", (function(evt){
xhr.upload.addEventListener("progress", (function(){
var id = e.data; var id = e.data;
return function() {
return function(evt) {
if (evt.lengthComputable) { if (evt.lengthComputable) {
var progress = Math.floor(evt.loaded / evt.total * 50); var progress = Math.floor(evt.loaded / evt.total * 50);
if ( progress < 1 ) { progress = 1; } if ( progress < 1 ) { progress = 1; }

Loading…
Peruuta
Tallenna