Use toastr notifications instead of statusBarSet()

This commit is contained in:
2017-10-02 19:31:52 +02:00
parent 9870979c54
commit d3cd6a884e
6 changed files with 29 additions and 34 deletions

View File

@@ -112,10 +112,8 @@ script.
.addClass('processing');
var item_url = '/o/' + item_id;
statusBarSet('default', 'Loading organization…');
$.get(item_url, function(item_data) {
statusBarClear();
$('#item-details').html(item_data);
current_item
@@ -129,7 +127,7 @@ script.
}
current_item.removeClass(clean_classes);
statusBarSet('error', 'Failed to open organization', 'pi-warning');
toastr.error('Failed to open organization');
if (xhr.status) {
$('#item-details').html(xhr.responseText);

View File

@@ -245,7 +245,7 @@ script.
})
.done(function (data) {
setTimeout(function(){ $('.sharing-users-item').removeClass('added');}, 350);
statusBarSet('success', 'Member added to this organization!', 'pi-grin');
toastr.success('Member added to this organization!');
// TODO fsiddi: avoid the reloading of the entire page?
window.location.reload();