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
902cdefe
Commit
902cdefe
authored
Feb 04, 2013
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added comments for unused 2nd arg on generateCheckHoverState
parent
50eced5b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
cms/static/js/views/overview.js
+5
-2
No files found.
cms/static/js/views/overview.js
View file @
902cdefe
...
@@ -8,7 +8,9 @@ $(document).ready(function() {
...
@@ -8,7 +8,9 @@ $(document).ready(function() {
handle
:
'.drag-handle'
,
handle
:
'.drag-handle'
,
zIndex
:
999
,
zIndex
:
999
,
start
:
initiateHesitate
,
start
:
initiateHesitate
,
drag
:
generateCheckHoverState
(
'.collapsed'
,
''
),
// '.unit'),
// left 2nd arg in as inert selector b/c i was uncertain whether we'd try to get the shove up/down
// to work in the future
drag
:
generateCheckHoverState
(
'.collapsed'
,
''
),
stop
:
removeHesitate
,
stop
:
removeHesitate
,
revert
:
"invalid"
revert
:
"invalid"
});
});
...
@@ -19,7 +21,7 @@ $(document).ready(function() {
...
@@ -19,7 +21,7 @@ $(document).ready(function() {
handle
:
'.section-item .drag-handle'
,
handle
:
'.section-item .drag-handle'
,
zIndex
:
999
,
zIndex
:
999
,
start
:
initiateHesitate
,
start
:
initiateHesitate
,
drag
:
generateCheckHoverState
(
'.courseware-section.collapsed'
,
''
),
//'.id-holder'),
drag
:
generateCheckHoverState
(
'.courseware-section.collapsed'
,
''
),
stop
:
removeHesitate
,
stop
:
removeHesitate
,
revert
:
"invalid"
revert
:
"invalid"
});
});
...
@@ -95,6 +97,7 @@ function computeIntersection(droppable, uiHelper, y) {
...
@@ -95,6 +97,7 @@ function computeIntersection(droppable, uiHelper, y) {
y
<
b
);
// Top Half
y
<
b
);
// Top Half
}
}
// NOTE: selectorsToShove is not currently being used but I left this code as it did work but not well
function
generateCheckHoverState
(
selectorsToOpen
,
selectorsToShove
)
{
function
generateCheckHoverState
(
selectorsToOpen
,
selectorsToShove
)
{
return
function
(
event
,
ui
)
{
return
function
(
event
,
ui
)
{
// copied from jquery.ui.droppable.js $.ui.ddmanager.drag & other ui.intersect
// copied from jquery.ui.droppable.js $.ui.ddmanager.drag & other ui.intersect
...
...
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