mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Update plugin card when CRC value changes
This commit is contained in:
@@ -217,6 +217,7 @@ loot-clear-metadata
|
||||
data: undefined,
|
||||
|
||||
observe: {
|
||||
'data.crc': 'onCrcChange',
|
||||
'data.tags': 'onTagsChange',
|
||||
'data.messages': 'onMessagesChange',
|
||||
'data.userlist': 'onUserlistChange',
|
||||
@@ -278,6 +279,12 @@ loot-clear-metadata
|
||||
}
|
||||
},
|
||||
|
||||
onCrcChange: function(oldValue, newValue) {
|
||||
if (this.data) {
|
||||
this.getElementsByClassName('crc')[0].textContent = this.data.getCardContent(loot.filters).crc;
|
||||
}
|
||||
},
|
||||
|
||||
onTagsChange: function(oldValue, newValue) {
|
||||
if (this.data) {
|
||||
var cardContent = this.data.getCardContent(loot.filters);
|
||||
|
||||
Reference in New Issue
Block a user