Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
b3cd6af9
Commit
b3cd6af9
authored
Jun 28, 2013
by
Peter Fogg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change deleted Alert to a Notification, with a timeout.
parent
1be2068b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
cms/djangoapps/contentstore/features/upload.py
+1
-1
cms/static/js/views/assets.js
+3
-2
No files found.
cms/djangoapps/contentstore/features/upload.py
View file @
b3cd6af9
...
...
@@ -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
)
...
...
cms/static/js/views/assets.js
View file @
b3cd6af9
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment