Skip to content

Commit

Permalink
[156] Allow right clicking series on the home page table view
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinHeist committed Jul 20, 2024
1 parent 7a27688 commit aa7ee95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions app/templates/js/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,7 @@ function _populateSeriesRow(series, template) {
// Determine maximum number of Cards based on libraries
const maxCards = library_unique_cards
? series.episode_count * series.libraries.length
: series.episode_count
;
: series.episode_count;

// Make row red / yellow depending on Card count
if (series.card_count === 0 && series.episode_count > 0) {
Expand All @@ -211,7 +210,8 @@ function _populateSeriesRow(series, template) {
row.querySelector('a[data-action="select"]').onclick = (event) => toggleSeriesSelection(series.id, undefined, event);

// Link name cell to Series page
row.querySelector('td[data-row="name"] a').onclick = () => openSeries(series.id);
// row.querySelector('td[data-row="name"] a').onclick = () => openSeries(series.id);
row.querySelector('td[data-row="name"] a').href = `/series/${series.id}`;
row.querySelector('td[data-row="name"]').dataset.sortValue = `_${series.sort_name}`; // Add _ so numbers are still parsed as text

// Add Series Name
Expand Down Expand Up @@ -486,9 +486,9 @@ const sortStates = {
cards: ['cards', 'reverse-cards'],
id: ['reverse-id', 'id',],
name: ['alphabetical', 'reverse-alphabetical'],
sync: ['sync', 'sync'],
sync: ['sync', 'sync'],
year: ['year', 'reverse-year'],
}
};
/**
* Adjust how the Series are sorted on the home page. This updates the local
* storage for the sort parameter, and re-queries the current page.
Expand Down
2 changes: 1 addition & 1 deletion modules/ref/version_webui
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.0-alpha.10.1-webui155
v2.0-alpha.10.1-webui156

0 comments on commit aa7ee95

Please sign in to comment.