Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Replace opHighlightCol with stimulus controller

Oliver Günther44412c300622
diff --git a/app/components/projects/table_component.html.erb b/app/components/projects/table_component.html.erb
index 75c71035155..6a1acbe642a 100644
--- a/app/components/projects/table_component.html.erb
+++ b/app/components/projects/table_component.html.erb
@@ -31,10 +31,10 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--flex-container">
<div class="generic-table--container <%= container_class %>">
<div class="generic-table--results-container">
- <table class="generic-table" <%= table_id ? "id=\"#{table_id}\"".html_safe : '' %>>
+ <table class="generic-table" data-controller="table-highlighting" <%= table_id ? "id=\"#{table_id}\"".html_safe : '' %>>
<colgroup>
<% columns.each do |column| %>
- <col <%= "opHighlightCol" unless column.attribute == :hierarchy %> >
+ <col>
<% end %>
<col>
</colgroup>
diff --git a/app/components/table_component.html.erb b/app/components/table_component.html.erb
index eb7b80bec8d..da9808b991d 100644
--- a/app/components/table_component.html.erb
+++ b/app/components/table_component.html.erb
@@ -29,10 +29,10 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--container <%= container_class %>" data-test-selector="<%= test_selector %>">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
<% headers.each do |_name, _options| %>
- <col opHighlightCol>
+ <col>
<% end %>
<col>
</colgroup>
diff --git a/app/views/attribute_help_texts/_tab.html.erb b/app/views/attribute_help_texts/_tab.html.erb
index 1da41bb295a..12f569dd415 100644
--- a/app/views/attribute_help_texts/_tab.html.erb
+++ b/app/views/attribute_help_texts/_tab.html.erb
@@ -2,11 +2,11 @@
<% if entries.any? %>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
<col>
</colgroup>
<thead>
diff --git a/app/views/custom_fields/_custom_options.html.erb b/app/views/custom_fields/_custom_options.html.erb
index 42104014231..a70d9f0942d 100644
--- a/app/views/custom_fields/_custom_options.html.erb
+++ b/app/views/custom_fields/_custom_options.html.erb
@@ -32,11 +32,11 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table" id="custom-options-table">
+ <table class="generic-table" id="custom-options-table" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
<col>
</colgroup>
<thead>
diff --git a/app/views/custom_fields/_tab.html.erb b/app/views/custom_fields/_tab.html.erb
index 61ca5e638b2..4dea4e198b7 100644
--- a/app/views/custom_fields/_tab.html.erb
+++ b/app/views/custom_fields/_tab.html.erb
@@ -39,16 +39,16 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
<% end %>
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
<% if tab[:name] == 'WorkPackageCustomField' %>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
<% end %>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
<col>
</colgroup>
<thead>
diff --git a/app/views/forums/index.html.erb b/app/views/forums/index.html.erb
index ef46ec843c4..aa1a2dde488 100644
--- a/app/views/forums/index.html.erb
+++ b/app/views/forums/index.html.erb
@@ -46,14 +46,14 @@ See COPYRIGHT and LICENSE files for more details.
<% else %>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table boards">
+ <table class="generic-table boards" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
<% if User.current.allowed_in_project?(:manage_forums, @project) %>
- <col opHighlightCol>
+ <col>
<col>
<% end %>
</colgroup>
diff --git a/app/views/forums/show.html.erb b/app/views/forums/show.html.erb
index 3e14c6529c2..cf7cc4615d4 100644
--- a/app/views/forums/show.html.erb
+++ b/app/views/forums/show.html.erb
@@ -69,13 +69,13 @@ See COPYRIGHT and LICENSE files for more details.
<% if @topics.any? %>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
+ <col>
</colgroup>
<thead>
<tr>
diff --git a/app/views/groups/_memberships.html.erb b/app/views/groups/_memberships.html.erb
index 802458872af..8064048d3a4 100644
--- a/app/views/groups/_memberships.html.erb
+++ b/app/views/groups/_memberships.html.erb
@@ -35,10 +35,10 @@ See COPYRIGHT and LICENSE files for more details.
<% if @group.memberships.any? %>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table memberships">
+ <table class="generic-table memberships" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
<col>
</colgroup>
<thead>
diff --git a/app/views/groups/_users_table.html.erb b/app/views/groups/_users_table.html.erb
index b8595fb23a8..1b9f1e9a4bd 100644
--- a/app/views/groups/_users_table.html.erb
+++ b/app/views/groups/_users_table.html.erb
@@ -29,7 +29,7 @@ See COPYRIGHT and LICENSE files for more details.
<table class="generic-table users">
<colgroup>
- <col opHighlightCol>
+ <col colightCol>
<col>
</colgroup>
<thead>
diff --git a/app/views/groups/index.html.erb b/app/views/groups/index.html.erb
index 533d13cb5d5..00bb41da9c7 100644
--- a/app/views/groups/index.html.erb
+++ b/app/views/groups/index.html.erb
@@ -54,10 +54,10 @@ See COPYRIGHT and LICENSE files for more details.
<% if @groups.any? %>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
<col>
</colgroup>
<thead>
diff --git a/app/views/individual_principals/_memberships.html.erb b/app/views/individual_principals/_memberships.html.erb
index 5879ceaa581..80c0839358d 100644
--- a/app/views/individual_principals/_memberships.html.erb
+++ b/app/views/individual_principals/_memberships.html.erb
@@ -40,8 +40,8 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--results-container">
<table class="generic-table memberships">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
<%= call_individual_principals_memberships_hook(@individual_principal, 'colgroup') %>
<col>
</colgroup>
diff --git a/app/views/my/access_token.html.erb b/app/views/my/access_token.html.erb
index f974a8639dc..0051eafd106 100644
--- a/app/views/my/access_token.html.erb
+++ b/app/views/my/access_token.html.erb
@@ -52,9 +52,8 @@ See COPYRIGHT and LICENSE files for more details.
%>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<%= call_hook(:view_access_tokens_table, user: @user) %>
</table>
</div>
</div>
-
diff --git a/app/views/my/access_token_partials/_icalendar_tokens_section.html.erb b/app/views/my/access_token_partials/_icalendar_tokens_section.html.erb
index 3fd2595a756..b2700560199 100644
--- a/app/views/my/access_token_partials/_icalendar_tokens_section.html.erb
+++ b/app/views/my/access_token_partials/_icalendar_tokens_section.html.erb
@@ -40,17 +40,17 @@ See COPYRIGHT and LICENSE files for more details.
<% if ical_tokens_grouped_by_query.any? %>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<%= render partial: "my/access_token_partials/token_table_header",
- locals: {
+ locals: {
column_headers: [
t('attributes.name'),
WorkPackage.human_attribute_name(:calendar),
WorkPackage.human_attribute_name(:project),
User.human_attribute_name(:created_at),
t('my_account.access_tokens.headers.expiration')
- ]
- }
+ ]
+ }
%>
<tbody>
<% ical_tokens_grouped_by_query.each do |query_id, tokens| %>
@@ -103,5 +103,3 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
</div>
</div>
-
-
diff --git a/app/views/my/access_token_partials/_oauth_tokens_section.html.erb b/app/views/my/access_token_partials/_oauth_tokens_section.html.erb
index eca2435c12f..846c288f25d 100644
--- a/app/views/my/access_token_partials/_oauth_tokens_section.html.erb
+++ b/app/views/my/access_token_partials/_oauth_tokens_section.html.erb
@@ -39,15 +39,15 @@ See COPYRIGHT and LICENSE files for more details.
<% if granted_applications.any? %>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<%= render partial: "my/access_token_partials/token_table_header",
- locals: {
+ locals: {
column_headers: [
- t('attributes.name'),
+ t('attributes.name'),
User.human_attribute_name(:created_at),
t('my_account.access_tokens.headers.expiration')
- ]
- }
+ ]
+ }
%>
<tbody>
<% granted_applications.each do |application, tokens| %>
diff --git a/app/views/my/access_token_partials/_rss_tokens_section.html.erb b/app/views/my/access_token_partials/_rss_tokens_section.html.erb
index 3557cecf7c0..45e7389635a 100644
--- a/app/views/my/access_token_partials/_rss_tokens_section.html.erb
+++ b/app/views/my/access_token_partials/_rss_tokens_section.html.erb
@@ -40,15 +40,15 @@ See COPYRIGHT and LICENSE files for more details.
<% if rss_token %>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<%= render partial: "my/access_token_partials/token_table_header",
- locals: {
+ locals: {
column_headers: [
- t('attributes.name'),
- User.human_attribute_name(:created_at),
+ t('attributes.name'),
+ User.human_attribute_name(:created_at),
t('my_account.access_tokens.headers.expiration')
- ]
- }
+ ]
+ }
%>
<tbody>
<tr>
@@ -88,5 +88,3 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
</div>
</div>
-
-
diff --git a/app/views/my/access_token_partials/_storage_tokens_section.html.erb b/app/views/my/access_token_partials/_storage_tokens_section.html.erb
index ede26b4c1c7..7439402967f 100644
--- a/app/views/my/access_token_partials/_storage_tokens_section.html.erb
+++ b/app/views/my/access_token_partials/_storage_tokens_section.html.erb
@@ -39,7 +39,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if @storage_tokens.any? %>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<%= render partial: "my/access_token_partials/token_table_header",
locals: {
column_headers: [
diff --git a/app/views/my/access_token_partials/_token_table_header.html.erb b/app/views/my/access_token_partials/_token_table_header.html.erb
index 5bc75f81206..42978397726 100644
--- a/app/views/my/access_token_partials/_token_table_header.html.erb
+++ b/app/views/my/access_token_partials/_token_table_header.html.erb
@@ -28,9 +28,9 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<colgroup>
<% column_headers&.length&.times do %>
- <col opHighlightCol>
+ <col>
<% end %>
- <col opHighlightCol>
+ <col>
</colgroup>
<thead>
<tr>
@@ -49,4 +49,4 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</th>
</tr>
-</thead>
\ No newline at end of file
+</thead>
diff --git a/app/views/principals/_global_roles.html.erb b/app/views/principals/_global_roles.html.erb
index 8b261bc1ae6..2959891a119 100644
--- a/app/views/principals/_global_roles.html.erb
+++ b/app/views/principals/_global_roles.html.erb
@@ -39,9 +39,9 @@ See COPYRIGHT and LICENSE files for more details.
<% else %>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table principal_roles" id="table_principal_roles">
+ <table class="generic-table principal_roles" id="table_principal_roles" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
+ <col>
<col>
</colgroup>
<thead>
diff --git a/app/views/projects/settings/categories/show.html.erb b/app/views/projects/settings/categories/show.html.erb
index dbf2e34c453..9edd0865de8 100644
--- a/app/views/projects/settings/categories/show.html.erb
+++ b/app/views/projects/settings/categories/show.html.erb
@@ -44,10 +44,10 @@ See COPYRIGHT and LICENSE files for more details.
<% if @project.categories.any? %>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
<col>
</colgroup>
<thead>
diff --git a/app/views/projects/settings/custom_fields/_form.html.erb b/app/views/projects/settings/custom_fields/_form.html.erb
index 1255ad99ca3..093ebc211c9 100644
--- a/app/views/projects/settings/custom_fields/_form.html.erb
+++ b/app/views/projects/settings/custom_fields/_form.html.erb
@@ -29,11 +29,11 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
</colgroup>
<thead>
<tr>
diff --git a/app/views/projects/settings/types/_form.html.erb b/app/views/projects/settings/types/_form.html.erb
index 6ff1000bcca..99adecdc612 100644
--- a/app/views/projects/settings/types/_form.html.erb
+++ b/app/views/projects/settings/types/_form.html.erb
@@ -29,13 +29,13 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table types">
+ <table class="generic-table types" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
+ <col>
</colgroup>
<thead>
<tr>
diff --git a/app/views/repositories/_dir_list.html.erb b/app/views/repositories/_dir_list.html.erb
index 5b417c53035..41e8a8990fd 100644
--- a/app/views/repositories/_dir_list.html.erb
+++ b/app/views/repositories/_dir_list.html.erb
@@ -28,15 +28,15 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table" data-repository-navigation-target="repoBrowser">
+ <table class="generic-table" data-controller="table-highlighting" data-repository-navigation-target="repoBrowser">
<colgroup>
- <col opHighlightCol>
<col>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
+ <col>
+ <col>
</colgroup>
<thead>
<tr id="root">
diff --git a/app/views/repositories/_revisions.html.erb b/app/views/repositories/_revisions.html.erb
index 5b547c43826..ce14ce62e69 100644
--- a/app/views/repositories/_revisions.html.erb
+++ b/app/views/repositories/_revisions.html.erb
@@ -32,12 +32,12 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--results-container">
<table class="generic-table changesets">
<colgroup>
- <col opHighlightCol>
<col>
<col>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
</colgroup>
<caption class="hidden-for-sighted">
<span>
diff --git a/app/views/repositories/committers.html.erb b/app/views/repositories/committers.html.erb
index 50ca04e4693..510ae229695 100644
--- a/app/views/repositories/committers.html.erb
+++ b/app/views/repositories/committers.html.erb
@@ -34,10 +34,10 @@ See COPYRIGHT and LICENSE files for more details.
<%= form_tag({}) do %>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
</colgroup>
<thead>
<tr>
diff --git a/app/views/roles/index.html.erb b/app/views/roles/index.html.erb
index a5a3c55aa2a..9462e7a2435 100644
--- a/app/views/roles/index.html.erb
+++ b/app/views/roles/index.html.erb
@@ -53,11 +53,11 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
<col>
</colgroup>
<thead>
diff --git a/app/views/roles/report.html.erb b/app/views/roles/report.html.erb
index 0fcfd9c8cba..cc6255d538c 100644
--- a/app/views/roles/report.html.erb
+++ b/app/views/roles/report.html.erb
@@ -61,14 +61,14 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
+ <col>
+ <col>
</colgroup>
<thead>
<tr>
diff --git a/app/views/types/index.html.erb b/app/views/types/index.html.erb
index 8743fc7fcc3..4b037c98998 100644
--- a/app/views/types/index.html.erb
+++ b/app/views/types/index.html.erb
@@ -54,15 +54,15 @@ See COPYRIGHT and LICENSE files for more details.
<% if @types.any? %>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
<col>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
+ <col>
+ <col>
<col>
</colgroup>
<thead>
diff --git a/app/views/wiki/history.html.erb b/app/views/wiki/history.html.erb
index 1f141a95586..0034b8120c7 100644
--- a/app/views/wiki/history.html.erb
+++ b/app/views/wiki/history.html.erb
@@ -37,12 +37,12 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--results-container">
<table class="generic-table wiki-page-versions">
<colgroup>
- <col opHighlightCol>
<col>
<col>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
<col>
</colgroup>
<caption class="hidden-for-sighted">
diff --git a/app/views/work_packages/reports/_report.html.erb b/app/views/work_packages/reports/_report.html.erb
index eb6b0b9fe23..f8320605da6 100644
--- a/app/views/work_packages/reports/_report.html.erb
+++ b/app/views/work_packages/reports/_report.html.erb
@@ -36,10 +36,10 @@ See COPYRIGHT and LICENSE files for more details.
<% column_names = report.statuses.map(&:name) + [t(:label_open_work_packages), t(:label_closed_work_packages), t(:label_total)] %>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
<% column_names.each do |name| %>
- <col opHighlightCol>
+ <col>
<% end %>
</colgroup>
<thead>
diff --git a/app/views/workflows/show.html.erb b/app/views/workflows/show.html.erb
index 6d71a6e7d28..e46e59a272b 100644
--- a/app/views/workflows/show.html.erb
+++ b/app/views/workflows/show.html.erb
@@ -34,14 +34,14 @@ See COPYRIGHT and LICENSE files for more details.
<div class="autoscroll">
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
<col>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
+ <col>
<col>
</colgroup>
<thead>
diff --git a/frontend/src/app/features/work-packages/components/wp-table/wp-table.component.html b/frontend/src/app/features/work-packages/components/wp-table/wp-table.component.html
index baa0baa1217..9c75b972055 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/wp-table.component.html
+++ b/frontend/src/app/features/work-packages/components/wp-table/wp-table.component.html
@@ -8,8 +8,8 @@
<col *ngIf="configuration.dragAndDropEnabled">
<col *ngIf="baselineEnabled">
<!-- Generate col elements dynamically(!) for each requested column plus one for the action menu's column. -->
- <col opHighlightCol *ngFor="let column of [].constructor(columns.length)">
- <col opHighlightCol *ngIf="configuration.columnMenuEnabled">
+ <col *ngFor="let column of [].constructor(columns.length)">
+ <col *ngIf="configuration.columnMenuEnabled">
<col *ngIf="!configuration.columnMenuEnabled">
</colgroup>
<caption class="hidden-for-sighted">
diff --git a/frontend/src/app/shared/components/grids/widgets/time-entries/list/time-entries-list.component.html b/frontend/src/app/shared/components/grids/widgets/time-entries/list/time-entries-list.component.html
index 437b9a8c7cb..cf5b7f6f8d9 100644
--- a/frontend/src/app/shared/components/grids/widgets/time-entries/list/time-entries-list.component.html
+++ b/frontend/src/app/shared/components/grids/widgets/time-entries/list/time-entries-list.component.html
@@ -20,10 +20,10 @@
<div class="generic-table--results-container" *ngIf="entriesLoaded && anyEntries">
<table class="generic-table time-entries">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
<col>
</colgroup>
<thead class="-sticky">
diff --git a/frontend/src/app/shared/directives/highlight-col/highlight-col.directive.ts b/frontend/src/app/shared/directives/highlight-col/highlight-col.directive.ts
deleted file mode 100644
index f24d29d8d83..00000000000
--- a/frontend/src/app/shared/directives/highlight-col/highlight-col.directive.ts
+++ /dev/null
@@ -1,71 +0,0 @@
-//-- copyright
-// OpenProject is an open source project management software.
-// Copyright (C) the OpenProject GmbH
-//
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU General Public License version 3.
-//
-// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
-// Copyright (C) 2006-2013 Jean-Philippe Lang
-// Copyright (C) 2010-2013 the ChiliProject Team
-//
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU General Public License
-// as published by the Free Software Foundation; either version 2
-// of the License, or (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-//
-// See COPYRIGHT and LICENSE files for more details.
-//++
-
-import {
- Component, ElementRef, OnDestroy, OnInit,
-} from '@angular/core';
-
-export const highlightColSelector = 'col[opHighlightCol]';
-
-@Component({
- selector: highlightColSelector,
- template: '',
-})
-export class OpHighlightColDirective implements OnInit, OnDestroy { // eslint-disable-line @angular-eslint/component-class-suffix
- private $element:JQuery;
-
- private thead:JQuery;
-
- constructor(private elementRef:ElementRef) {
- }
-
- ngOnInit() {
- this.$element = jQuery(this.elementRef.nativeElement);
- this.thead = this.$element
- .parent('colgroup')
- .siblings('thead');
-
- // Separate handling instead of toggle is necessary to avoid
- // unwanted side effects when adding/removing columns via keyboard in the modal
- this.thead.on('mouseenter', 'th', (evt:JQuery.TriggeredEvent) => {
- if (this.$element.index() === jQuery(evt.currentTarget).index()) {
- this.$element.addClass('hover');
- }
- });
-
- this.thead.on('mouseleave', 'th', (evt:JQuery.TriggeredEvent) => {
- if (this.$element.index() === jQuery(evt.currentTarget).index()) {
- this.$element.removeClass('hover');
- }
- });
- }
-
- ngOnDestroy() {
- this.thead.off('mouseenter mouseleave');
- }
-}
diff --git a/frontend/src/app/shared/shared.module.ts b/frontend/src/app/shared/shared.module.ts
index afa6221fc2a..75b31d9bdff 100644
--- a/frontend/src/app/shared/shared.module.ts
+++ b/frontend/src/app/shared/shared.module.ts
@@ -62,9 +62,7 @@ import { EnterprisePageComponent } from 'core-app/shared/components/enterprise-p
import { FreeTrialButtonComponent } from 'core-app/features/enterprise/free-trial-button/free-trial-button.component';
import { HomescreenNewFeaturesBlockComponent } from 'core-app/features/homescreen/blocks/new-features.component';
import { TablePaginationComponent } from 'core-app/shared/components/table-pagination/table-pagination.component';
-import { HookService } from 'core-app/features/plugins/hook-service';
import { StaticQueriesService } from 'core-app/shared/components/op-view-select/op-static-queries.service';
-import { highlightColSelector, OpHighlightColDirective, } from './directives/highlight-col/highlight-col.directive';
import { CopyToClipboardService } from './components/copy-to-clipboard/copy-to-clipboard.service';
import { CopyToClipboardComponent } from './components/copy-to-clipboard/copy-to-clipboard.component';
import { OpDateTimeComponent } from './components/date/op-date-time.component';
@@ -112,14 +110,6 @@ export function bootstrapModule(injector:Injector):void {
project: currentProject.identifier || 'global',
'router state': uiRouterGlobals.current.name || 'unknown',
}));
-
- const hookService = injector.get(HookService);
- hookService.register('openProjectAngularBootstrap', () => [
- {
- selector: highlightColSelector,
- cls: OpHighlightColDirective,
- },
- ]);
}
@NgModule({
@@ -181,9 +171,6 @@ export function bootstrapModule(injector:Injector):void {
UploadProgressComponent,
OpDateTimeComponent,
- // Table highlight
- OpHighlightColDirective,
-
ResizerComponent,
TablePaginationComponent,
@@ -229,9 +216,6 @@ export function bootstrapModule(injector:Injector):void {
OPContextMenuComponent,
IconTriggeredContextMenuComponent,
- // Table highlight
- OpHighlightColDirective,
-
// Add functionality to rails rendered templates
CopyToClipboardComponent,
CollapsibleSectionComponent,
diff --git a/frontend/src/stimulus/controllers/table-highlighting.controller.ts b/frontend/src/stimulus/controllers/table-highlighting.controller.ts
new file mode 100644
index 00000000000..365dd3cbd40
--- /dev/null
+++ b/frontend/src/stimulus/controllers/table-highlighting.controller.ts
@@ -0,0 +1,87 @@
+/*
+ * -- copyright
+ * OpenProject is an open source project management software.
+ * Copyright (C) the OpenProject GmbH
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License version 3.
+ *
+ * OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+ * Copyright (C) 2006-2013 Jean-Philippe Lang
+ * Copyright (C) 2010-2013 the ChiliProject Team
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * See COPYRIGHT and LICENSE files for more details.
+ * ++
+ */
+
+import { ApplicationController } from 'stimulus-use';
+
+export default class TableHighlightingController extends ApplicationController {
+ private thead:HTMLElement;
+ private colgroup:HTMLElement;
+
+ connect() {
+ const thead = this.element.querySelector('thead');
+ const colgroup = this.element.querySelector('colgroup');
+
+ if (thead && colgroup) {
+ this.thead = thead;
+ this.colgroup = colgroup;
+
+ this.thead.addEventListener('mouseover', this.hover);
+ this.thead.addEventListener('mouseout', this.unhover);
+ }
+ }
+
+ disconnect() {
+ super.disconnect();
+
+ if (this.thead && this.colgroup) {
+ this.thead.removeEventListener('mouseover', this.hover);
+ this.thead.removeEventListener('mouseout', this.unhover);
+ }
+ }
+
+ private hover = (evt:MouseEvent) => {
+ const col = this.getColumn(evt.target as HTMLElement);
+ col?.classList.add('hover');
+ };
+
+ private unhover = (evt:MouseEvent) => {
+ const col = this.getColumn(evt.target as HTMLElement);
+ col?.classList.remove('hover');
+ };
+
+ private getColumn(target:HTMLElement):HTMLElement|null {
+ const th = target.closest('th') as HTMLElement;
+ const index = this.parentIndex(th);
+
+ if (index !== null) {
+ return this.colgroup.children.item(index) as HTMLElement|null;
+ }
+
+ return null;
+ }
+
+ private parentIndex(element:HTMLElement):number|null {
+ if (element.parentElement) {
+ return Array.from(element.parentElement.children).indexOf(element);
+ }
+
+ return null;
+ }
+}
diff --git a/frontend/src/stimulus/setup.ts b/frontend/src/stimulus/setup.ts
index 48382bd3b44..de46916e8ac 100644
--- a/frontend/src/stimulus/setup.ts
+++ b/frontend/src/stimulus/setup.ts
@@ -6,6 +6,7 @@ import OpDisableWhenCheckedController from './controllers/disable-when-checked.c
import PrintController from './controllers/print.controller';
import RefreshOnFormChangesController from './controllers/refresh-on-form-changes.controller';
import AsyncDialogController from './controllers/async-dialog.controller';
+import TableHighlightingController from "./controllers/table-highlighting.controller";
declare global {
interface Window {
@@ -28,3 +29,4 @@ instance.register('disable-when-checked', OpDisableWhenCheckedController);
instance.register('print', PrintController);
instance.register('refresh-on-form-changes', RefreshOnFormChangesController);
instance.register('async-dialog', AsyncDialogController);
+instance.register('table-highlighting', TableHighlightingController);
diff --git a/lookbook/previews/open_project/deprecated/table_preview/buttons.html.erb b/lookbook/previews/open_project/deprecated/table_preview/buttons.html.erb
index 0094b7dbbd9..a450e7b59f0 100644
--- a/lookbook/previews/open_project/deprecated/table_preview/buttons.html.erb
+++ b/lookbook/previews/open_project/deprecated/table_preview/buttons.html.erb
@@ -1,4 +1,4 @@
-<table class="generic-table">
+<table class="generic-table" data-controller="table-highlighting">
<thead>
<tr>
<th>
diff --git a/lookbook/previews/open_project/deprecated/table_preview/default.html.erb b/lookbook/previews/open_project/deprecated/table_preview/default.html.erb
index b34b4d6cd5b..66bd797a8d8 100644
--- a/lookbook/previews/open_project/deprecated/table_preview/default.html.erb
+++ b/lookbook/previews/open_project/deprecated/table_preview/default.html.erb
@@ -1,12 +1,12 @@
<div class="generic-table--container">
<div class="generic-table--results-container" style="max-height: 340px;">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
+ <col>
</colgroup>
<thead>
<tr>
diff --git a/lookbook/previews/open_project/deprecated/table_preview/footer.html.erb b/lookbook/previews/open_project/deprecated/table_preview/footer.html.erb
index 170ad794843..53655f85726 100644
--- a/lookbook/previews/open_project/deprecated/table_preview/footer.html.erb
+++ b/lookbook/previews/open_project/deprecated/table_preview/footer.html.erb
@@ -1,12 +1,12 @@
<div class="generic-table--container -with-footer">
<div class="generic-table--results-container" style="max-height: 340px;">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
+ <col>
</colgroup>
<thead>
<tr>
diff --git a/lookbook/previews/open_project/deprecated/table_preview/no_ellipse.html.erb b/lookbook/previews/open_project/deprecated/table_preview/no_ellipse.html.erb
index e5855ba690b..bec46636279 100644
--- a/lookbook/previews/open_project/deprecated/table_preview/no_ellipse.html.erb
+++ b/lookbook/previews/open_project/deprecated/table_preview/no_ellipse.html.erb
@@ -1,12 +1,12 @@
<div class="generic-table--container">
<div class="generic-table--results-container" style="max-height: 340px;">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
+ <col>
</colgroup>
<thead>
<tr>
diff --git a/modules/backlogs/app/views/projects/settings/backlogs/show.html.erb b/modules/backlogs/app/views/projects/settings/backlogs/show.html.erb
index 91f9da1c78d..6a1881bda2e 100644
--- a/modules/backlogs/app/views/projects/settings/backlogs/show.html.erb
+++ b/modules/backlogs/app/views/projects/settings/backlogs/show.html.erb
@@ -37,10 +37,10 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table" id="material_budget_items">
+ <table class="generic-table" data-controller="table-highlighting" id="material_budget_items">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
</colgroup>
<thead>
<tr>
diff --git a/modules/budgets/app/components/budgets/actual_labor_budget_items_component.html.erb b/modules/budgets/app/components/budgets/actual_labor_budget_items_component.html.erb
index 47783fdca2a..a38e27b34c6 100644
--- a/modules/budgets/app/components/budgets/actual_labor_budget_items_component.html.erb
+++ b/modules/budgets/app/components/budgets/actual_labor_budget_items_component.html.erb
@@ -5,10 +5,10 @@
<div class="generic-table--results-container">
<table class="generic-table labor_budget_items">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
</colgroup>
<thead>
<tr>
diff --git a/modules/budgets/app/components/budgets/actual_material_budget_items_component.html.erb b/modules/budgets/app/components/budgets/actual_material_budget_items_component.html.erb
index bf848633f5d..1fe717e5a60 100644
--- a/modules/budgets/app/components/budgets/actual_material_budget_items_component.html.erb
+++ b/modules/budgets/app/components/budgets/actual_material_budget_items_component.html.erb
@@ -5,10 +5,10 @@
<div class="generic-table--results-container">
<table class="generic-table material_budget_items">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
</colgroup>
<thead>
<tr>
diff --git a/modules/budgets/app/components/budgets/planned_labor_budget_items_component.html.erb b/modules/budgets/app/components/budgets/planned_labor_budget_items_component.html.erb
index 942562c33ae..1e293885ffe 100644
--- a/modules/budgets/app/components/budgets/planned_labor_budget_items_component.html.erb
+++ b/modules/budgets/app/components/budgets/planned_labor_budget_items_component.html.erb
@@ -5,10 +5,10 @@
<div class="generic-table--results-container">
<table class="generic-table labor_budget_items">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
</colgroup>
<thead>
<tr>
diff --git a/modules/budgets/app/components/budgets/planned_material_budget_items_component.html.erb b/modules/budgets/app/components/budgets/planned_material_budget_items_component.html.erb
index 43cc8f324ae..5c52311b115 100644
--- a/modules/budgets/app/components/budgets/planned_material_budget_items_component.html.erb
+++ b/modules/budgets/app/components/budgets/planned_material_budget_items_component.html.erb
@@ -5,10 +5,10 @@
<div class="generic-table--results-container">
<table class="generic-table material_budget_items">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
</colgroup>
<thead>
<tr>
diff --git a/modules/budgets/app/views/budgets/_list.html.erb b/modules/budgets/app/views/budgets/_list.html.erb
index 84468ee23ae..bd13f1b203d 100644
--- a/modules/budgets/app/views/budgets/_list.html.erb
+++ b/modules/budgets/app/views/budgets/_list.html.erb
@@ -31,14 +31,14 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table" id="material_budget_items">
+ <table class="generic-table" data-controller="table-highlighting" id="material_budget_items">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
+ <col>
+ <col>
</colgroup>
<thead>
<tr>
diff --git a/modules/budgets/app/views/budgets/subform/_labor_budget_subform.html.erb b/modules/budgets/app/views/budgets/subform/_labor_budget_subform.html.erb
index 4a0408987ec..b26c97167bf 100644
--- a/modules/budgets/app/views/budgets/subform/_labor_budget_subform.html.erb
+++ b/modules/budgets/app/views/budgets/subform/_labor_budget_subform.html.erb
@@ -41,13 +41,13 @@ end -%>
<legend class="form--fieldset-legend"><%= Budget.human_attribute_name(:labor_budget) %></legend>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table" id="labor_budget_items">
+ <table class="generic-table" data-controller="table-highlighting" id="labor_budget_items">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
<% if User.current.allowed_in_project?(:view_cost_rates, @project)%>
- <col opHighlightCol>
+ <col>
<%end%>
<col>
</colgroup>
diff --git a/modules/budgets/app/views/budgets/subform/_material_budget_subform.html.erb b/modules/budgets/app/views/budgets/subform/_material_budget_subform.html.erb
index 8e05f0bb1af..d486662fcb0 100644
--- a/modules/budgets/app/views/budgets/subform/_material_budget_subform.html.erb
+++ b/modules/budgets/app/views/budgets/subform/_material_budget_subform.html.erb
@@ -39,13 +39,13 @@ See COPYRIGHT and LICENSE files for more details.
<legend class="form--fieldset-legend"><%= Budget.human_attribute_name(:material_budget) %></legend>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table" id="material_budget_items">
+ <table class="generic-table" data-controller="table-highlighting" id="material_budget_items">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
<% if User.current.allowed_in_project?(:view_cost_rates, @project)%>
- <col opHighlightCol>
+ <col>
<%end%>
<col>
</colgroup>
diff --git a/modules/costs/app/views/cost_types/_list.html.erb b/modules/costs/app/views/cost_types/_list.html.erb
index 2ad561117c9..3daee22e263 100644
--- a/modules/costs/app/views/cost_types/_list.html.erb
+++ b/modules/costs/app/views/cost_types/_list.html.erb
@@ -34,14 +34,14 @@ See COPYRIGHT and LICENSE files for more details.
<% else %>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
+ <col>
+ <col>
<col>
</colgroup>
<thead>
diff --git a/modules/costs/app/views/cost_types/_list_deleted.html.erb b/modules/costs/app/views/cost_types/_list_deleted.html.erb
index 9db7166cf60..a619cd78251 100644
--- a/modules/costs/app/views/cost_types/_list_deleted.html.erb
+++ b/modules/costs/app/views/cost_types/_list_deleted.html.erb
@@ -36,11 +36,11 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--results-container">
<table class="generic-table locked_cost_types">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
+ <col>
<col>
</colgroup>
<thead>
diff --git a/modules/costs/app/views/cost_types/edit.html.erb b/modules/costs/app/views/cost_types/edit.html.erb
index bd5d19f44f2..51831734e16 100644
--- a/modules/costs/app/views/cost_types/edit.html.erb
+++ b/modules/costs/app/views/cost_types/edit.html.erb
@@ -66,10 +66,10 @@ See COPYRIGHT and LICENSE files for more details.
<h3><%= t :caption_rate_history %></h3>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
<col>
</colgroup>
<thead>
diff --git a/modules/costs/app/views/hourly_rates/_list_default.html.erb b/modules/costs/app/views/hourly_rates/_list_default.html.erb
index 9f936b2e126..609dc98ecba 100644
--- a/modules/costs/app/views/hourly_rates/_list_default.html.erb
+++ b/modules/costs/app/views/hourly_rates/_list_default.html.erb
@@ -38,9 +38,9 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--results-container">
<table class="generic-table rates">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
</colgroup>
<thead>
<tr>
diff --git a/modules/costs/app/views/hourly_rates/_list_project.html.erb b/modules/costs/app/views/hourly_rates/_list_project.html.erb
index c359e990581..4bdd44a8635 100644
--- a/modules/costs/app/views/hourly_rates/_list_project.html.erb
+++ b/modules/costs/app/views/hourly_rates/_list_project.html.erb
@@ -51,9 +51,9 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--results-container">
<table class="generic-table rates">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
</colgroup>
<thead>
<tr>
diff --git a/modules/costs/app/views/hourly_rates/edit.html.erb b/modules/costs/app/views/hourly_rates/edit.html.erb
index 363e42f59e9..9ebeb2d903f 100644
--- a/modules/costs/app/views/hourly_rates/edit.html.erb
+++ b/modules/costs/app/views/hourly_rates/edit.html.erb
@@ -48,8 +48,8 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--results-container">
<table class="generic-table rates" width="200px">
<colgroup>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
<col>
</colgroup>
<thead>
diff --git a/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/destroy_info.html.erb b/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/destroy_info.html.erb
index 70f764b8694..26a18957c15 100644
--- a/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/destroy_info.html.erb
+++ b/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/destroy_info.html.erb
@@ -18,7 +18,7 @@
<p><%= t('ldap_groups.synchronized_filters.destroy.removed_groups') %></p>
<div class="generic-table--container">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<thead>
<th>
<div class="generic-table--sort-header-outer">
diff --git a/modules/meeting/app/views/meeting_contents/history.html.erb b/modules/meeting/app/views/meeting_contents/history.html.erb
index fdeedf93853..b1e2c4ad786 100644
--- a/modules/meeting/app/views/meeting_contents/history.html.erb
+++ b/modules/meeting/app/views/meeting_contents/history.html.erb
@@ -39,14 +39,14 @@ See COPYRIGHT and LICENSE files for more details.
data-application-target="dynamic"
data-controller="journal-history">
<div class="generic-table--results-container">
- <table class="generic-table">
+ <table class="generic-table" data-controller="table-highlighting">
<colgroup>
- <col opHighlightCol>
<col>
<col>
- <col opHighlightCol>
- <col opHighlightCol>
- <col opHighlightCol>
+ <col>
+ <col>
+ <col>
+ <col>
</colgroup>
<thead>
<tr>
diff --git a/modules/reporting/lib/widget/table/entry_table.rb b/modules/reporting/lib/widget/table/entry_table.rb
index dfb95fcb419..6cab895d47e 100644
--- a/modules/reporting/lib/widget/table/entry_table.rb
+++ b/modules/reporting/lib/widget/table/entry_table.rb
@@ -48,10 +48,10 @@ class Widget::Table::EntryTable < Widget::Table
def colgroup
content_tag :colgroup do
FIELDS.each do
- concat content_tag(:col, "", "opHighlightCol" => true)
+ concat content_tag(:col, "")
end
- concat content_tag(:col, "", "opHighlightCol" => true)
- concat content_tag(:col, "", "opHighlightCol" => true)
+ concat content_tag(:col, "")
+ concat content_tag(:col, "")
concat content_tag(:col, "")
end
end