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) {
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') {