From 83fd9c69f358c1f6e4ac41fb9683b8a4b3e97c21 Mon Sep 17 00:00:00 2001 From: Anna Date: Tue, 27 Mar 2018 20:44:01 +0300 Subject: [PATCH] upd --- imagehosting/templates/imagehosting/all.html | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) 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(); });