diff --git a/imagehosting/templates/imagehosting/all.html b/imagehosting/templates/imagehosting/all.html index fbcdb6a..3e08836 100644 --- a/imagehosting/templates/imagehosting/all.html +++ b/imagehosting/templates/imagehosting/all.html @@ -12,20 +12,12 @@ // $(function() {resizer(); }) // $(window).load(resizer();) // jQuery promises API - var progrs = $('img').promise(); - progrs.progress(function(p){ - alert("Операция выполнена на " + p + " процентов"); -}). + $('img').promise(). done(function(){ + resizer(); alert("Операция выполнена полностью!"); }); -progrs.notify(30); -// ... -progrs.notify(60); -// ... -progrs.notify(90); -// ... -progrs.resolve(); + // .done(function() {resizer(); console.log('done');}); // $(window).on("load", function() {resizer(); });