Update status bar before/after loading shot/task
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user