Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-poll
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
xblock-poll
Commits
b1027f85
Commit
b1027f85
authored
Aug 19, 2015
by
E. Kolpakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for issue #15
parent
d3cf58ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
poll/public/js/poll_edit.js
+5
-4
No files found.
poll/public/js/poll_edit.js
View file @
b1027f85
function
PollEditUtil
(
runtime
,
element
,
pollType
)
{
var
self
=
this
;
var
notify
;
...
...
@@ -105,14 +104,15 @@ function PollEditUtil(runtime, element, pollType) {
this
.
empowerArrows
=
function
(
scope
,
topMarker
,
bottomMarker
)
{
// Activates the arrows on rendered line items.
$
(
'.poll-move-up'
,
scope
).
click
(
function
()
{
$
(
'.poll-move-up'
,
scope
).
click
(
function
(
ev
)
{
var
tag
=
$
(
this
).
parents
(
'li'
);
if
(
tag
.
index
()
<=
(
$
(
topMarker
).
index
()
+
1
)){
return
;
}
tag
.
prev
().
before
(
tag
);
tag
.
fadeOut
(
0
).
fadeIn
(
'slow'
,
'swing'
);
self
.
scrollTo
(
tag
)
self
.
scrollTo
(
tag
);
ev
.
preventDefault
();
});
$
(
'.poll-move-down'
,
scope
).
click
(
function
()
{
var
tag
=
$
(
this
).
parents
(
'li'
);
...
...
@@ -121,7 +121,8 @@ function PollEditUtil(runtime, element, pollType) {
}
tag
.
next
().
after
(
tag
);
tag
.
fadeOut
(
0
).
fadeIn
(
'slow'
,
'swing'
);
self
.
scrollTo
(
tag
)
self
.
scrollTo
(
tag
);
ev
.
preventDefault
();
});
};
...
...
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