Update status bar before/after loading shot/task

This commit is contained in:
2016-10-04 14:26:37 +02:00
parent 932fad9161
commit 785e35434d

View File

@@ -38,7 +38,10 @@ function item_open(item_id, item_type, pushState)
push_url = '/attract/' + project_url + '/shots/with-task/' + item_id; push_url = '/attract/' + project_url + '/shots/with-task/' + item_id;
} }
$('#status-bar').text('Loading ' + item_type + '…');
$.get(item_url, function(item_data) { $.get(item_url, function(item_data) {
$('#status-bar').text('');
$('#item-details').html(item_data); $('#item-details').html(item_data);
}).fail(function(xhr) { }).fail(function(xhr) {
if (console) { if (console) {