diff --git a/imagehosting/templates/imagehosting/all.html b/imagehosting/templates/imagehosting/all.html index 3dc7fe8..cc507a8 100644 --- a/imagehosting/templates/imagehosting/all.html +++ b/imagehosting/templates/imagehosting/all.html @@ -12,9 +12,9 @@ // $(function() {resizer(); }) // $(window).load(resizer();) // jQuery promises API - $('img').promise().done(function() {console.log('done');}); + $('img').promise().done(function() {resizer(); console.log('done');}); - $(window).on("load", function() {resizer(); }); + // $(window).on("load", function() {resizer(); }); $(window).resize(function() { resizer(); }) function resizer() {