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
480aa80d
Commit
480aa80d
authored
Jan 15, 2013
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cache
parent
e884f17d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
cms/static/js/base.js
+7
-0
No files found.
cms/static/js/base.js
View file @
480aa80d
...
@@ -55,6 +55,7 @@ $(document).ready(function() {
...
@@ -55,6 +55,7 @@ $(document).ready(function() {
$
(
"#start_date, #start_time, #due_date, #due_time"
).
bind
(
'change'
,
autosaveInput
);
$
(
"#start_date, #start_time, #due_date, #due_time"
).
bind
(
'change'
,
autosaveInput
);
$
(
'.sync-date, .remove-date'
).
bind
(
'click'
,
autosaveInput
);
$
(
'.sync-date, .remove-date'
).
bind
(
'click'
,
autosaveInput
);
var
cachedHesitation
=
new
CMS
.
HesitateEvent
(
expandSection
,
$
(
'.branch .collapsed'
),
'mouseLeave'
);
// making the unit list sortable
// making the unit list sortable
$
(
'.sortable-unit-list'
).
sortable
({
$
(
'.sortable-unit-list'
).
sortable
({
axis
:
'y'
,
axis
:
'y'
,
...
@@ -240,6 +241,12 @@ function removePolicyMetadata(e) {
...
@@ -240,6 +241,12 @@ function removePolicyMetadata(e) {
saveSubsection
()
saveSubsection
()
}
}
function
expandSection
(
event
)
{
$
(
event
.
currentTarget
).
removeClass
(
'collapsed'
);
// TODO remove the hesitate trigger on this ele
// $(event.currentTarget).off('mouseEnter', expandSection);
$
(
event
.
currentTarget
).
find
(
'.expand-collapse-icon'
).
removeClass
(
'expand'
).
addClass
(
'collapse'
);
}
// This method only changes the ordering of the child objects in a subsection
// This method only changes the ordering of the child objects in a subsection
function
onUnitReordered
()
{
function
onUnitReordered
()
{
...
...
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