Commit b3cd6af9 by Peter Fogg

Change deleted Alert to a Notification, with a timeout.

parent 1be2068b
......@@ -92,7 +92,7 @@ def modify_upload(_step, file_name):
@step('I see a confirmation that the file was deleted')
def i_see_a_delete_confirmation(step):
alert_css = '#alert-confirmation'
alert_css = '#notification-confirmation'
assert world.is_css_present(alert_css)
......
......@@ -23,9 +23,10 @@ function removeAsset(e){
{ 'location': row.data('id') },
function() {
// show the post-commit confirmation
var deleted = new CMS.Views.Alert.Confirmation({
var deleted = new CMS.Views.Notification.Confirmation({
title: gettext("Your file has been deleted."),
closeIcon: false
closeIcon: false,
maxShown: 2000
});
deleted.show();
row.remove();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment