Tagged Assets: Set the loading bar when loading images

This commit is contained in:
2018-09-20 15:27:41 +02:00
parent 89ea34724b
commit bce054d47d

View File

@@ -24,6 +24,8 @@
if (!node.picture) { if (!node.picture) {
warnNoPicture(); warnNoPicture();
} else { } else {
loadingBarShow();
// TODO: show 'loading' thingy // TODO: show 'loading' thingy
$.get('/api/files/' + node.picture) $.get('/api/files/' + node.picture)
.fail(function(error) { .fail(function(error) {
@@ -31,6 +33,8 @@
console.log(msg); console.log(msg);
}) })
.done(function(resp) { .done(function(resp) {
loadingBarHide();
// Render the picture if it has the proper size. // Render the picture if it has the proper size.
var show_variation = null; var show_variation = null;
if (typeof resp.variations != 'undefined') { if (typeof resp.variations != 'undefined') {