item_open: use toastr notification when failing

This commit is contained in:
2017-06-14 18:23:16 +02:00
parent 9d59aefd80
commit c38203ba63

View File

@@ -78,7 +78,7 @@ function item_open(item_id, item_type, pushState, project_url)
.removeClass('processing')
}
statusBarSet('error', 'Failed to open ' + item_type, 'pi-warning');
toastr.error('Failed to open ' + item_type);
if (xhr.status) {
$('#item-details').html(xhr.responseText);