Tagged Assets: Set the loading bar when loading images
This commit is contained in:
@@ -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') {
|
||||||
|
Reference in New Issue
Block a user