Commit 89c6fb89 authored by catch's avatar catch

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

parent 1ab109f1
......@@ -12,7 +12,7 @@
*
* Text search input: input.views-filter-text
* 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}
*
......@@ -30,7 +30,7 @@
function showViewRow(index, 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;
$row.closest('tr').toggle(textMatch);
}
......
......@@ -103,9 +103,14 @@ public function buildRow(EntityInterface $view) {
'data' => array(
'#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(
'data' => array(
'#theme' => 'item_list',
......
......@@ -9,7 +9,7 @@
* @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">
{% if displays %}
{% trans %}
......@@ -24,5 +24,5 @@
</div>
<div class="views-ui-view-machine-name">
{{ '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>
......@@ -7,7 +7,7 @@
* - 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">
{% if displays %}
{% trans %}
......@@ -22,5 +22,5 @@
</div>
<div class="views-ui-view-machine-name">
{{ '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>
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