Commit 11134112 by polesye

Fix multiple LTI tools per page.

parent 8e9c48c2
...@@ -92,10 +92,10 @@ class LTIModule(LTIFields, XModule): ...@@ -92,10 +92,10 @@ class LTIModule(LTIFields, XModule):
<form <form
action="${launch_url}" action="${launch_url}"
name="ltiLaunchForm" name="ltiLaunchForm-${element_id}"
class="ltiLaunchForm" class="ltiLaunchForm"
method="post" method="post"
target="ltiLaunchFrame" target="ltiLaunchFrame-${element_id}"
encType="application/x-www-form-urlencoded" encType="application/x-www-form-urlencoded"
> >
<input name="launch_presentation_return_url" value="" /> <input name="launch_presentation_return_url" value="" />
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
## result will be rendered to the below iFrame. ## result will be rendered to the below iFrame.
<form <form
action="${launch_url}" action="${launch_url}"
name="ltiLaunchForm" name="ltiLaunchForm-${element_id}"
class="ltiLaunchForm" class="ltiLaunchForm"
method="post" method="post"
target="ltiLaunchFrame" target="ltiLaunchFrame-${element_id}"
encType="application/x-www-form-urlencoded" encType="application/x-www-form-urlencoded"
> >
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
## The result of the form submit will be rendered here. ## The result of the form submit will be rendered here.
<iframe <iframe
name="ltiLaunchFrame" name="ltiLaunchFrame-${element_id}"
class="ltiLaunchFrame" class="ltiLaunchFrame"
src="" src=""
></iframe> ></iframe>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment