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
349c2d15
Commit
349c2d15
authored
Sep 28, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make ENABLE_SHOPPING_CART truly optional
course_about was throwing 500s if ENABLE_SHOPPING_CART=False
parent
02031fed
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
lms/templates/courseware/course_about.html
+3
-1
No files found.
lms/templates/courseware/course_about.html
View file @
349c2d15
...
@@ -30,6 +30,8 @@
...
@@ -30,6 +30,8 @@
$
(
"#class_enroll_form"
).
submit
();
$
(
"#class_enroll_form"
).
submit
();
event
.
preventDefault
();
event
.
preventDefault
();
});
});
%
if
settings
.
MITX_FEATURES
.
get
(
'ENABLE_SHOPPING_CART'
)
and
settings
.
MITX_FEATURES
.
get
(
'ENABLE_PAID_COURSE_REGISTRATION'
):
add_course_complete_handler
=
function
(
jqXHR
,
textStatus
)
{
add_course_complete_handler
=
function
(
jqXHR
,
textStatus
)
{
if
(
jqXHR
.
status
==
200
)
{
if
(
jqXHR
.
status
==
200
)
{
location
.
href
=
"${cart_link}"
;
location
.
href
=
"${cart_link}"
;
...
@@ -52,7 +54,7 @@
...
@@ -52,7 +54,7 @@
})
})
event
.
preventDefault
();
event
.
preventDefault
();
});
});
%
endif
%
if
settings
.
MITX_FEATURES
.
get
(
'ENABLE_SHOPPING_CART'
)
and
settings
.
MITX_FEATURES
.
get
(
'ENABLE_PAID_COURSE_REGISTRATION'
):
%
if
settings
.
MITX_FEATURES
.
get
(
'ENABLE_SHOPPING_CART'
)
and
settings
.
MITX_FEATURES
.
get
(
'ENABLE_PAID_COURSE_REGISTRATION'
):
add_course_complete_handler
=
function
(
jqXHR
,
textStatus
)
{
add_course_complete_handler
=
function
(
jqXHR
,
textStatus
)
{
...
...
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