Skip to content

Commit

Permalink
Merge pull request #3759 from foundryvtt/JournalPage-textSearch
Browse files Browse the repository at this point in the history
Enable `textSearch` for fields of `JournalEntryPage` sub-types
  • Loading branch information
arbron authored Sep 12, 2024
2 parents 4ddd174 + 3451967 commit 4c64d04
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions module/data/journal/class.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ export default class ClassJournalPageData extends foundry.abstract.TypeDataModel
return {
item: new StringField({ required: true }),
description: new SchemaField({
value: new HTMLField(),
additionalHitPoints: new HTMLField(),
additionalTraits: new HTMLField(),
additionalEquipment: new HTMLField(),
subclass: new HTMLField()
value: new HTMLField({ textSearch: true }),
additionalHitPoints: new HTMLField({ textSearch: true }),
additionalTraits: new HTMLField({ textSearch: true }),
additionalEquipment: new HTMLField({ textSearch: true }),
subclass: new HTMLField({ textSearch: true })
}),
style: new StringField(),
subclassHeader: new StringField(),
subclassHeader: new StringField({ textSearch: true }),
subclassItems: new SetField(new StringField())
};
}
Expand Down
2 changes: 1 addition & 1 deletion module/data/journal/rule.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default class RuleJournalPageData extends foundry.abstract.TypeDataModel
/** @inheritDoc */
static defineSchema() {
return {
tooltip: new HTMLField({label: "DND5E.Rule.Tooltip"}),
tooltip: new HTMLField({textSearch: true, label: "DND5E.Rule.Tooltip"}),
type: new StringField({blank: false, initial: "rule", label: "DND5E.Rule.Type.Label"})
};
}
Expand Down
2 changes: 1 addition & 1 deletion module/data/journal/spells.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class SpellListJournalPageData extends foundry.abstract.TypeDataM
hint: "JOURNALENTRYPAGE.DND5E.SpellList.Grouping.Hint"
}),
description: new SchemaField({
value: new HTMLField({label: "DND5E.Description"})
value: new HTMLField({textSearch: true, label: "DND5E.Description"})
}),
spells: new SetField(new StringField(), {label: "DND5E.ItemTypeSpellPl"}),
unlinkedSpells: new ArrayField(new SchemaField({
Expand Down
2 changes: 1 addition & 1 deletion module/data/journal/subclass.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class SubclassJournalPageData extends foundry.abstract.TypeDataMo
return {
item: new StringField({ required: true }),
description: new SchemaField({
value: new HTMLField()
value: new HTMLField({ textSearch: true })
}),
style: new StringField()
};
Expand Down

0 comments on commit 4c64d04

Please sign in to comment.