From bce054d47d37ff6db85038f43f616ad97bfc5f8e Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Thu, 20 Sep 2018 15:27:41 +0200 Subject: [PATCH] Tagged Assets: Set the loading bar when loading images --- src/scripts/tagged_assets.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scripts/tagged_assets.js b/src/scripts/tagged_assets.js index 74395ef..15d3c56 100644 --- a/src/scripts/tagged_assets.js +++ b/src/scripts/tagged_assets.js @@ -24,6 +24,8 @@ if (!node.picture) { warnNoPicture(); } else { + loadingBarShow(); + // TODO: show 'loading' thingy $.get('/api/files/' + node.picture) .fail(function(error) { @@ -31,6 +33,8 @@ console.log(msg); }) .done(function(resp) { + loadingBarHide(); + // Render the picture if it has the proper size. var show_variation = null; if (typeof resp.variations != 'undefined') {