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
281b0f0c
Commit
281b0f0c
authored
May 31, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable enrollment urls and javascript
parent
19bebea2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
29 deletions
+2
-29
templates/index.html
+0
-27
urls.py
+2
-2
No files found.
templates/index.html
View file @
281b0f0c
...
@@ -79,38 +79,11 @@
...
@@ -79,38 +79,11 @@
</section>
</section>
</section>
</section>
<div
id=
"enroll"
class=
"leanModal_box"
name=
"enroll"
><
%
include
file=
"create_account.html"
/></div>
<script>
<script>
$
(
function
()
{
$
(
function
()
{
// TODO: Clean up as per http://stackoverflow.com/questions/169506/obtain-form-input-fields-using-jquery
// TODO: Clean up as per http://stackoverflow.com/questions/169506/obtain-form-input-fields-using-jquery
/* Handles when the user hits 'enroll'. Grabs form data. Does AJAX.
Either shows error, or shows success. */
$
(
'form#enroll_form'
).
submit
(
function
(
e
)
{
e
.
preventDefault
();
var
submit_data
=
{};
$
.
each
(
$
(
"[id^=ca_]"
),
function
(
index
,
value
){
submit_data
[
value
.
name
]
=
value
.
value
;
});
$
.
each
(
$
(
"[id^=cb_]"
),
function
(
index
,
value
){
submit_data
[
value
.
name
]
=
value
.
checked
;
});
postJSON
(
'/create_account'
,
submit_data
,
function
(
json
)
{
if
(
json
.
success
)
{
$
(
'#enroll'
).
html
(
json
.
value
);
}
else
{
$
(
'#enroll_error'
).
html
(
json
.
value
).
stop
().
css
(
"background-color"
,
"#933"
).
animate
({
backgroundColor
:
"#333"
},
2000
);
}
}
);
});
/* Activate stupid spinner drop-downs in enrollment form */
/* Activate stupid spinner drop-downs in enrollment form */
var
spinner_array
=
$
(
"[id^=spinner_]"
);
var
spinner_array
=
$
(
"[id^=spinner_]"
);
spinner_array
.
each
(
function
(
i
)
{
spinner_array
.
each
(
function
(
i
)
{
...
...
urls.py
View file @
281b0f0c
...
@@ -23,8 +23,8 @@ urlpatterns = ('',
...
@@ -23,8 +23,8 @@ urlpatterns = ('',
url
(
r'^login$'
,
'student.views.login_user'
),
url
(
r'^login$'
,
'student.views.login_user'
),
url
(
r'^login/(?P<error>[^/]*)$'
,
'student.views.login_user'
),
url
(
r'^login/(?P<error>[^/]*)$'
,
'student.views.login_user'
),
url
(
r'^logout$'
,
'student.views.logout_user'
),
url
(
r'^logout$'
,
'student.views.logout_user'
),
url
(
r'^create_account$'
,
'student.views.create_account'
),
#
url(r'^create_account$', 'student.views.create_account'),
url
(
r'^activate/(?P<key>[^/]*)$'
,
'student.views.activate_account'
),
#
url(r'^activate/(?P<key>[^/]*)$', 'student.views.activate_account'),
# url(r'^reactivate/(?P<key>[^/]*)$', 'student.views.reactivation_email'),
# url(r'^reactivate/(?P<key>[^/]*)$', 'student.views.reactivation_email'),
url
(
r'^password_reset/$'
,
'student.views.password_reset'
),
url
(
r'^password_reset/$'
,
'student.views.password_reset'
),
## Obsolete Django views for password resets
## Obsolete Django views for password resets
...
...
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