Make more fields searchable and fix tags loading without results
This commit is contained in:
parent
a7ee1d531f
commit
89b38111cd
|
@ -26,11 +26,7 @@
|
||||||
inputTags.BulmaTagsInput().on('after.remove', function(item) {
|
inputTags.BulmaTagsInput().on('after.remove', function(item) {
|
||||||
var spl = item.split(": ");
|
var spl = item.split(": ");
|
||||||
var field = spl[0];
|
var field = spl[0];
|
||||||
try {
|
|
||||||
var value = JSON.parse(spl[1]);
|
|
||||||
} catch {
|
|
||||||
var value = spl[1].trim();
|
var value = spl[1].trim();
|
||||||
}
|
|
||||||
populateSearch(field, value);
|
populateSearch(field, value);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -76,7 +72,7 @@
|
||||||
|
|
||||||
// }
|
// }
|
||||||
if (field == "src") {
|
if (field == "src") {
|
||||||
document.getElementById("source").selectedIndex = 0;
|
document.getElementById("source").selectedIndex = 2;
|
||||||
}
|
}
|
||||||
if (queryElement.value.startsWith(" AND ")) {
|
if (queryElement.value.startsWith(" AND ")) {
|
||||||
queryElement.value = queryElement.value.replace(" AND ", "");
|
queryElement.value = queryElement.value.replace(" AND ", "");
|
||||||
|
@ -370,6 +366,10 @@
|
||||||
{% endif %} -->
|
{% endif %} -->
|
||||||
{% if table %}
|
{% if table %}
|
||||||
{% include 'ui/drilldown/table_results.html' %}
|
{% include 'ui/drilldown/table_results.html' %}
|
||||||
|
{% else %}
|
||||||
|
<script>
|
||||||
|
setupTags();
|
||||||
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -78,7 +78,13 @@
|
||||||
{% for column, cell in row.items %}
|
{% for column, cell in row.items %}
|
||||||
{% if column.name in show and not column.name in hide %}
|
{% if column.name in show and not column.name in hide %}
|
||||||
{% block table.tbody.td %}
|
{% block table.tbody.td %}
|
||||||
{% if column.name == 'src' %}
|
{% if cell == '—' %}
|
||||||
|
<td>
|
||||||
|
<span class="icon">
|
||||||
|
<i class="fa-solid fa-file-slash"></i>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
{% elif column.name == 'src' %}
|
||||||
<td>
|
<td>
|
||||||
<a class="has-text-link is-underlined"
|
<a class="has-text-link is-underlined"
|
||||||
onclick="populateSearch('src', '{{ cell|escapejs }}')">
|
onclick="populateSearch('src', '{{ cell|escapejs }}')">
|
||||||
|
@ -218,6 +224,27 @@
|
||||||
{{ cell }}
|
{{ cell }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
{% elif column.name == 'nick_id' %}
|
||||||
|
<td>
|
||||||
|
<a class="has-text-link is-underlined"
|
||||||
|
onclick="populateSearch('nick_id', '{{ cell|escapejs }}')">
|
||||||
|
{{ cell }}
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
{% elif column.name == 'user_id' %}
|
||||||
|
<td>
|
||||||
|
<a class="has-text-link is-underlined"
|
||||||
|
onclick="populateSearch('user_id', '{{ cell|escapejs }}')">
|
||||||
|
{{ cell }}
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
{% elif column.name == 'channel_id' %}
|
||||||
|
<td>
|
||||||
|
<a class="has-text-link is-underlined"
|
||||||
|
onclick="populateSearch('channel_id', '{{ cell|escapejs }}')">
|
||||||
|
{{ cell }}
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
{% elif cell == True or cell == False %}
|
{% elif cell == True or cell == False %}
|
||||||
<td>
|
<td>
|
||||||
{% if cell == True %}
|
{% if cell == True %}
|
||||||
|
|
Loading…
Reference in New Issue