From b5b29c173c94bd1f96112efe6956e9c8cd2533d9 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sat, 15 Nov 2014 15:16:00 +0000 Subject: [PATCH] Conflict filter checkbox state is now recorded. For list filtering and scrolling. Also added an import for the checkbox, it missing wasn't causing problems, but it should still be there. --- resources/report/html/loot-plugin-card.html | 6 +++++- resources/report/js/plugin.js | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/report/html/loot-plugin-card.html b/resources/report/html/loot-plugin-card.html index 301156ff..3494e297 100644 --- a/resources/report/html/loot-plugin-card.html +++ b/resources/report/html/loot-plugin-card.html @@ -19,6 +19,7 @@ loot-clear-metadata + @@ -143,7 +144,7 @@ loot-clear-metadata
- + @@ -223,6 +224,9 @@ loot-clear-metadata this.onCrcChange(); this.onTagsChange(); this.onMessagesChange(); + + /* Also set highlight if the conflict filter is active. */ + this.classList.toggle('highlight', this.data.isConflictFilterChecked); } }, diff --git a/resources/report/js/plugin.js b/resources/report/js/plugin.js index 609affc6..b484351a 100644 --- a/resources/report/js/plugin.js +++ b/resources/report/js/plugin.js @@ -43,6 +43,7 @@ function Plugin(obj) { this.id = this.name.replace(/\s+/g, ''); this.isMenuOpen = false; this.isEditorOpen = false; + this.isConflictFilterChecked = false; /* Converts between the LOOT metadata object for tags, and their editor row representation. */