Skip to content

Commit 15764df

Browse files
taniwallachdrgrice1
authored andcommitted
Move JavaScript of LTI 1.3 login self posting form to a JS file.
1 parent 63926bf commit 15764df

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

htdocs/js/LTILogin/ltilogin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
document.getElementById('ltiRepost')?.submit();
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1+
<%= javascript $c->url({ type => 'webwork', name => 'htdocs', file => 'js/LTILogin/ltilogin.js' }),
2+
defer => undef =%>
13
<%= form_for $form_target, method => 'POST', enctype => 'application/x-www-form-urlencoded',
24
name => 'ltiRepost', id => 'ltiRepost', begin =%>
35
% for (keys %$form_params) {
46
<%= hidden_field $_ => $form_params->{$_} =%>
57
% }
68
<% end =%>
7-
<%= javascript begin =%>
8-
document.ltiRepost.submit();
9-
<% end =%>

0 commit comments

Comments
 (0)