Use toastr notifications instead of statusBarSet()
This commit is contained in:
@@ -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);
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user