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
d7d68a1e
Commit
d7d68a1e
authored
May 02, 2013
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edx.org - resolved JQuery submit() method error on <iframe> register button actions
parent
59c56c26
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
lms/templates/courseware/mktg_course_about.html
+10
-10
lms/templates/mktg_iframe.html
+1
-1
No files found.
lms/templates/courseware/mktg_course_about.html
View file @
d7d68a1e
...
@@ -17,19 +17,14 @@
...
@@ -17,19 +17,14 @@
</
%
block>
</
%
block>
<
%
block
name=
"js_extra"
>
<
%
block
name=
"js_extra"
>
</
%
block>
<
%
block
name=
"content"
>
% if not registered:
% if not registered:
%if user.is_authenticated():
%if user.is_authenticated():
## If the user is authenticated, clicking the enroll button just submits a form
## If the user is authenticated, clicking the enroll button just submits a form
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
(
function
()
{
(
function
()
{
$
(
".register"
).
click
(
function
(
e
)
{
$
(
'.register'
).
click
(
function
(
e
)
{
alert
(
"herp derp"
);
(
e
).
preventDefault
();
e
.
preventDefault
();
$
(
'#class_enroll_form'
).
submit
();
$
(
"#class_enroll_form"
).
submit
();
});
});
$
(
document
).
delegate
(
'#class_enroll_form'
,
'ajax:success'
,
function
(
data
,
json
,
xhr
)
{
$
(
document
).
delegate
(
'#class_enroll_form'
,
'ajax:success'
,
function
(
data
,
json
,
xhr
)
{
...
@@ -59,6 +54,9 @@
...
@@ -59,6 +54,9 @@
</script>
</script>
%endif
%endif
%endif
%endif
</
%
block>
<
%
block
name=
"content"
>
<script
src=
"${static.url('js/course_info.js')}"
></script>
<script
src=
"${static.url('js/course_info.js')}"
></script>
...
@@ -71,7 +69,7 @@
...
@@ -71,7 +69,7 @@
<a
class=
"action action-register is-registered"
href=
"${course_target}"
>
Registered for
<strong>
${course.number}
</strong></a>
<a
class=
"action action-register is-registered"
href=
"${course_target}"
>
Registered for
<strong>
${course.number}
</strong></a>
%else:
%else:
<!-- signed in, not registered -->
<!-- signed in, not registered -->
<a
href=
"
#
"
class=
"action action-register register"
>
Register for ${course.number}
</a>
<div
id=
"register_message"
></div>
<a
href=
""
class=
"action action-register register"
>
Register for ${course.number}
</a>
<div
id=
"register_message"
></div>
%endif
%endif
%else:
%else:
<!-- not signed in -->
<!-- not signed in -->
...
@@ -89,7 +87,9 @@
...
@@ -89,7 +87,9 @@
<input
name=
"enrollment_action"
type=
"hidden"
value=
"enroll"
>
<input
name=
"enrollment_action"
type=
"hidden"
value=
"enroll"
>
</fieldset>
</fieldset>
<div
class=
"submit"
>
<div
class=
"submit"
>
<input
name=
"submit"
type=
"submit"
value=
"enroll"
>
<button
type=
"submit"
name=
"class_enroll_form_submit"
id=
"class_enroll_form-submit"
value=
"enroll"
>
Enroll
</button>
</div>
</div>
</form>
</form>
</div>
</div>
...
...
lms/templates/mktg_iframe.html
View file @
d7d68a1e
...
@@ -35,6 +35,6 @@
...
@@ -35,6 +35,6 @@
<
%
block
name=
"content"
></
%
block>
<
%
block
name=
"content"
></
%
block>
</div>
</div>
<
%
block
name=
"jsextra"
></
%
block>
<
%
block
name=
"js
_
extra"
></
%
block>
</body>
</body>
</html>
</html>
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