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
74ce3d22
Commit
74ce3d22
authored
Dec 04, 2012
by
Tom Giannattasio
Committed by
Brian Talbot
Dec 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed new course button on click to prevent multiple instantiations
parent
131f4751
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
cms/static/js/base.js
+2
-0
cms/static/sass/_base.scss
+5
-3
cms/static/sass/_courseware.scss
+5
-0
cms/templates/overview.html
+1
-1
No files found.
cms/static/js/base.js
View file @
74ce3d22
...
@@ -597,6 +597,8 @@ function hideToastMessage(e) {
...
@@ -597,6 +597,8 @@ function hideToastMessage(e) {
function
addNewSection
(
e
,
isTemplate
)
{
function
addNewSection
(
e
,
isTemplate
)
{
e
.
preventDefault
();
e
.
preventDefault
();
$
(
e
.
target
).
hide
();
var
$newSection
=
$
(
$
(
'#new-section-template'
).
html
());
var
$newSection
=
$
(
$
(
'#new-section-template'
).
html
());
var
$cancelButton
=
$newSection
.
find
(
'.new-section-name-cancel'
);
var
$cancelButton
=
$newSection
.
find
(
'.new-section-name-cancel'
);
$
(
'.new-courseware-section-button'
).
after
(
$newSection
);
$
(
'.new-courseware-section-button'
).
after
(
$newSection
);
...
...
cms/static/sass/_base.scss
View file @
74ce3d22
...
@@ -26,7 +26,8 @@ a {
...
@@ -26,7 +26,8 @@ a {
h1
{
h1
{
float
:
left
;
float
:
left
;
font-size
:
28px
;
font-size
:
28px
;
margin
:
36px
6px
;
font-weight
:
300
;
margin
:
24px
6px
;
}
}
.waiting
{
.waiting
{
...
@@ -345,8 +346,9 @@ body.show-wip {
...
@@ -345,8 +346,9 @@ body.show-wip {
}
}
.new-button
{
.new-button
{
@include
grey-button
;
@include
blue-button
;
padding
:
20px
0
;
font-size
:
13px
;
padding
:
8px
20px
10px
;
text-align
:
center
;
text-align
:
center
;
&
.big
{
&
.big
{
...
...
cms/static/sass/_courseware.scss
View file @
74ce3d22
...
@@ -8,6 +8,7 @@ input.courseware-unit-search-input {
...
@@ -8,6 +8,7 @@ input.courseware-unit-search-input {
}
}
.courseware-section
{
.courseware-section
{
position
:
relative
;
position
:
relative
;
background
:
#fff
;
background
:
#fff
;
...
@@ -139,6 +140,10 @@ input.courseware-unit-search-input {
...
@@ -139,6 +140,10 @@ input.courseware-unit-search-input {
}
}
}
}
.section-name-form
{
margin-bottom
:
15px
;
}
.section-name-edit
{
.section-name-edit
{
input
{
input
{
font-size
:
16px
;
font-size
:
16px
;
...
...
cms/templates/overview.html
View file @
74ce3d22
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
<h1>
Courseware
</h1>
<h1>
Courseware
</h1>
<div
class=
"page-actions"
></div>
<div
class=
"page-actions"
></div>
<article
class=
"courseware-overview"
data-course-id=
"${context_course.location.url()}"
>
<article
class=
"courseware-overview"
data-course-id=
"${context_course.location.url()}"
>
<a
href=
"#"
class=
"new-button
big new-courseware-section-button"
><span
class=
"plus-icon
"
></span>
New Section
</a>
<a
href=
"#"
class=
"new-button
new-courseware-section-button"
><span
class=
"plus-icon white
"
></span>
New Section
</a>
% for section in sections:
% for section in sections:
<section
class=
"courseware-section branch"
data-id=
"${section.location}"
>
<section
class=
"courseware-section branch"
data-id=
"${section.location}"
>
<header>
<header>
...
...
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