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
481344cb
Commit
481344cb
authored
Feb 28, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2757 from edx/will/studio-xblock-error-notification
Add error notification for XBlocks in Studio
parents
c5439de1
fe4be011
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
cms/static/coffee/src/xblock/cms.runtime.v1.coffee
+14
-3
No files found.
cms/static/coffee/src/xblock/cms.runtime.v1.coffee
View file @
481344cb
...
@@ -41,7 +41,7 @@ define [
...
@@ -41,7 +41,7 @@ define [
# Starting to save, so show the "Saving..." notification
# Starting to save, so show the "Saving..." notification
if
data
.
state
==
'start'
if
data
.
state
==
'start'
@
_hide
_e
ditor
()
@
_hide
E
ditor
()
@
savingNotification
.
show
()
@
savingNotification
.
show
()
# Finished saving, so hide the "Saving..." notification
# Finished saving, so hide the "Saving..." notification
...
@@ -50,12 +50,23 @@ define [
...
@@ -50,12 +50,23 @@ define [
@
savingNotification
.
hide
()
@
savingNotification
.
hide
()
else
if
name
==
'cancel'
else
if
name
==
'cancel'
@
_hide
_e
ditor
()
@
_hide
E
ditor
()
_hide_editor
:
()
->
else
if
name
==
'error'
if
'msg'
of
data
@
_showAlert
(
data
.
msg
)
_hideEditor
:
()
->
# This will close all open component editors, which works
# This will close all open component editors, which works
# if we assume that <= 1 are open at a time.
# if we assume that <= 1 are open at a time.
el
=
$
(
'.component.editing'
)
el
=
$
(
'.component.editing'
)
el
.
removeClass
(
'editing'
)
el
.
removeClass
(
'editing'
)
el
.
find
(
'.component-editor'
).
slideUp
(
150
)
el
.
find
(
'.component-editor'
).
slideUp
(
150
)
ModalUtils
.
hideModalCover
()
ModalUtils
.
hideModalCover
()
_showAlert
:
(
msg
)
->
new
NotificationView
.
Error
({
title
:
"OpenAssessment Save Error"
,
message
:
msg
,
closeIcon
:
false
}).
show
()
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