Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-drag-and-drop-v2
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
OpenEdx
xblock-drag-and-drop-v2
Commits
143e0329
Commit
143e0329
authored
Aug 11, 2014
by
dragonfi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Publish close and open event instead of replace
parent
110c3e85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
drag_and_drop_v2/public/js/drag_and_drop.js
+10
-10
No files found.
drag_and_drop_v2/public/js/drag_and_drop.js
View file @
143e0329
...
@@ -96,7 +96,8 @@ function DragAndDropBlock(runtime, element) {
...
@@ -96,7 +96,8 @@ function DragAndDropBlock(runtime, element) {
_fn
.
$popup
.
hide
();
_fn
.
$popup
.
hide
();
publish_event
({
publish_event
({
event_type
:
'xblock.drag-and-drop-v2.feedback.closed'
,
event_type
:
'xblock.drag-and-drop-v2.feedback.closed'
,
content
:
_fn
.
$popup
.
find
(
".popup-content"
).
text
()
content
:
_fn
.
$popup
.
find
(
".popup-content"
).
text
(),
manually
:
true
});
});
});
});
},
},
...
@@ -239,16 +240,15 @@ function DragAndDropBlock(runtime, element) {
...
@@ -239,16 +240,15 @@ function DragAndDropBlock(runtime, element) {
if
(
_fn
.
$popup
.
is
(
":visible"
))
{
if
(
_fn
.
$popup
.
is
(
":visible"
))
{
publish_event
({
publish_event
({
event_type
:
"xblock.drag-and-drop-v2.feedback.
replac
ed"
,
event_type
:
"xblock.drag-and-drop-v2.feedback.
clos
ed"
,
old
:
_fn
.
$popup
.
find
(
".popup-content"
).
text
(),
content
:
_fn
.
$popup
.
find
(
".popup-content"
).
text
(),
new
:
str
manually
:
false
});
});
}
else
{
};
publish_event
({
publish_event
({
event_type
:
"xblock.drag-and-drop-v2.feedback.opened"
,
event_type
:
"xblock.drag-and-drop-v2.feedback.opened"
,
content
:
str
content
:
str
});
});
}
_fn
.
$popup
.
find
(
".popup-content"
).
text
(
str
);
_fn
.
$popup
.
find
(
".popup-content"
).
text
(
str
);
return
_fn
.
$popup
.
show
();
return
_fn
.
$popup
.
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