From b3cd6af9aa396f969dffb3471c1bd7994a706708 Mon Sep 17 00:00:00 2001 From: Peter Fogg Date: Fri, 28 Jun 2013 14:34:05 -0400 Subject: [PATCH] Change deleted Alert to a Notification, with a timeout. --- cms/djangoapps/contentstore/features/upload.py | 2 +- cms/static/js/views/assets.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cms/djangoapps/contentstore/features/upload.py b/cms/djangoapps/contentstore/features/upload.py index bc06c97f9c..a298ff08b1 100644 --- a/cms/djangoapps/contentstore/features/upload.py +++ b/cms/djangoapps/contentstore/features/upload.py @@ -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) diff --git a/cms/static/js/views/assets.js b/cms/static/js/views/assets.js index e9ab2cb911..224ec928fb 100644 --- a/cms/static/js/views/assets.js +++ b/cms/static/js/views/assets.js @@ -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();