Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions htdocs/js/CourseAdmin/manage_lti_course_map.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(() => {
// Make the LTI configuration info buttons activate upon use of the spacebar.
for (const btn of document.querySelectorAll('.lti-config-btn')) {
btn.addEventListener('keydown', (e) => {
if (e.key === ' ') {
e.preventDefault();
btn.click();
}
});
}
})();
10 changes: 10 additions & 0 deletions htdocs/js/JobManager/jobmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,14 @@
filter_select.addEventListener('change', toggle_filter_elements);
toggle_filter_elements();
}

// Make the job result buttons activate when using the spacebar.
for (const btn of document.querySelectorAll('.result-btn')) {
btn.addEventListener('keydown', (e) => {
if (e.key === ' ') {
e.preventDefault();
btn.click();
}
});
}
})();
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
% content_for js => begin
<%= javascript getAssetURL($ce, 'js/CourseAdmin/manage_lti_course_map.js'), defer => undef =%>
% end
Comment thread
drgrice1 marked this conversation as resolved.
%
<h2><%= maketext('Manage LTI Course Map') %> <%= $c->helpMacro('AdminManageLTICourseMap') %></h2>
<%= form_for current_route, method => 'POST', begin =%>
<%= $c->hidden_authen_fields =%>
Expand Down Expand Up @@ -30,7 +34,7 @@
</td>
<td class="text-center">
% if ($ltiConfigs->{$_}{LTIVersion} && $ltiConfigs->{$_}{LTIVersion} =~ /^v1p[13]$/) {
<a href="#" role="button" data-bs-toggle="modal"
<a href="#" role="button" class="lti-config-btn" data-bs-toggle="modal"
data-bs-target="#<%= $_ %>-config-modal">
<i class="fa-solid fa-circle-question fa-xl"></i>
<span class="visually-hidden"><%= maketext('LTI Configuration') %></span>
Expand Down