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
d1c888b1
Commit
d1c888b1
authored
Jan 09, 2013
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put init code in a document ready event handler.
parent
7f836e77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
cms/templates/unit.html
+6
-6
No files found.
cms/templates/unit.html
View file @
d1c888b1
...
...
@@ -5,6 +5,7 @@
<
%
block
name=
"title"
>
CMS Unit
</
%
block>
<
%
block
name=
"jsextra"
>
<script
type=
'text/javascript'
>
$
(
document
).
ready
(
function
()
{
new
CMS
.
Views
.
UnitEdit
({
el
:
$
(
'.main-wrapper'
),
model
:
new
CMS
.
Models
.
Module
({
...
...
@@ -13,12 +14,11 @@
})
});
(
function
()
{
$
(
'.new-component-template'
).
each
(
function
(){
$emptyEditor
=
$
(
this
).
find
(
'.empty'
);
$
(
this
).
prepend
(
$emptyEditor
);
});
})();
$
(
'.new-component-template'
).
each
(
function
(){
$emptyEditor
=
$
(
this
).
find
(
'.empty'
);
$
(
this
).
prepend
(
$emptyEditor
);
});
});
</script>
</
%
block>
...
...
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