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