Skip to content
Snippets Groups Projects
Commit 89c6fb89 authored by catch's avatar catch
Browse files

Issue #2638410 by dawehner, Lendude: Views overview page doesn't filter on tags

parent 1ab109f1
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* *
* Text search input: input.views-filter-text * Text search input: input.views-filter-text
* Target table: input.views-filter-text[data-table] * Target table: input.views-filter-text[data-table]
* Source text: .views-table-filter-text-source * Source text: [data-drupal-selector="views-table-filter-text-source"]
* *
* @type {Drupal~behavior} * @type {Drupal~behavior}
* *
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
function showViewRow(index, row) { function showViewRow(index, row) {
var $row = $(row); var $row = $(row);
var $sources = $row.find('.views-table-filter-text-source'); var $sources = $row.find('[data-drupal-selector="views-table-filter-text-source"]');
var textMatch = $sources.text().toLowerCase().indexOf(query) !== -1; var textMatch = $sources.text().toLowerCase().indexOf(query) !== -1;
$row.closest('tr').toggle(textMatch); $row.closest('tr').toggle(textMatch);
} }
......
...@@ -103,9 +103,14 @@ public function buildRow(EntityInterface $view) { ...@@ -103,9 +103,14 @@ public function buildRow(EntityInterface $view) {
'data' => array( 'data' => array(
'#plain_text' => $view->get('description'), '#plain_text' => $view->get('description'),
), ),
'class' => array('views-table-filter-text-source'), 'data-drupal-selector' => 'views-table-filter-text-source',
),
'tag' => array(
'data' => array(
'#plain_text' => $view->get('tag'),
),
'data-drupal-selector' => 'views-table-filter-text-source',
), ),
'tag' => $view->get('tag'),
'path' => array( 'path' => array(
'data' => array( 'data' => array(
'#theme' => 'item_list', '#theme' => 'item_list',
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @ingroup themeable * @ingroup themeable
*/ */
#} #}
<h3 class="views-ui-view-title views-table-filter-text-source">{{ view.label }}</h3> <h3 class="views-ui-view-title" data-drupal-selector="views-table-filter-text-source">{{ view.label }}</h3>
<div class="views-ui-view-displays"> <div class="views-ui-view-displays">
{% if displays %} {% if displays %}
{% trans %} {% trans %}
...@@ -24,5 +24,5 @@ ...@@ -24,5 +24,5 @@
</div> </div>
<div class="views-ui-view-machine-name"> <div class="views-ui-view-machine-name">
{{ 'Machine name:'|t }} {{ 'Machine name:'|t }}
<span class="views-table-filter-text-source">{{ view.id }}</span> <span data-drupal-selector="views-table-filter-text-source">{{ view.id }}</span>
</div> </div>
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* - displays: List of displays. * - displays: List of displays.
*/ */
#} #}
<h3 class="views-ui-view-title views-table-filter-text-source">{{ view.label }}</h3> <h3 class="views-ui-view-title" data-drupal-selector="views-table-filter-text-source">{{ view.label }}</h3>
<div class="views-ui-view-displays"> <div class="views-ui-view-displays">
{% if displays %} {% if displays %}
{% trans %} {% trans %}
...@@ -22,5 +22,5 @@ ...@@ -22,5 +22,5 @@
</div> </div>
<div class="views-ui-view-machine-name"> <div class="views-ui-view-machine-name">
{{ 'Machine name:'|t }} {{ 'Machine name:'|t }}
<span class="views-table-filter-text-source">{{ view.id }}</span> <span data-drupal-selector="views-table-filter-text-source">{{ view.id }}</span>
</div> </div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment