mirror of
https://github.com/Doctorado-ML/benchmark.git
synced 2025-08-17 00:15:55 +00:00
Fix row selection in bootstrap
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
"orderable": false
|
"orderable": false
|
||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
|
// Check if row is selected
|
||||||
$('#file-table tbody').on('click', 'tr', function () {
|
$('#file-table tbody').on('click', 'tr', function () {
|
||||||
if ($(this).hasClass('{{ selected }}')) {
|
if ($(this).hasClass('{{ selected }}')) {
|
||||||
$(this).removeClass('{{ selected }}');
|
$(this).removeClass('{{ selected }}');
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
style="--bs-btn-padding-y: .25rem; --bs-btn-padding-x: .5rem; --bs-btn-font-size: .75rem;"
|
style="--bs-btn-padding-y: .25rem; --bs-btn-padding-x: .5rem; --bs-btn-font-size: .75rem;"
|
||||||
onclick="showFile(\''%}
|
onclick="showFile(\''%}
|
||||||
{% set button_post = '\')">View</button>' %}
|
{% set button_post = '\')">View</button>' %}
|
||||||
|
{% set selected = "selected" %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set button_class = "button is-primary is-small" %}
|
{% set button_class = "button is-primary is-small" %}
|
||||||
{% set h1_class = "title is-1 has-text-centered" %}
|
{% set h1_class = "title is-1 has-text-centered" %}
|
||||||
|
Reference in New Issue
Block a user