From fd59d7b0dd4c191462036d9ccac50dfecda4ebdf Mon Sep 17 00:00:00 2001 From: Anna Date: Tue, 27 Mar 2018 20:27:56 +0300 Subject: [PATCH] upd --- imagehosting/templates/imagehosting/all.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/imagehosting/templates/imagehosting/all.html b/imagehosting/templates/imagehosting/all.html index eb97ce9..3dc7fe8 100644 --- a/imagehosting/templates/imagehosting/all.html +++ b/imagehosting/templates/imagehosting/all.html @@ -12,12 +12,8 @@ // $(function() {resizer(); }) // $(window).load(resizer();) // jQuery promises API - $('img').progress(function(p){ - alert("Операция выполнена на " + p + " процентов"); -}). -done(function(){ - alert("Операция выполнена полностью!"); -}); + $('img').promise().done(function() {console.log('done');}); + $(window).on("load", function() {resizer(); }); $(window).resize(function() { resizer(); })