League-of-Fabulous-Developers / FoundryVTT-Fabula-Ultima

Enter Project FU: an unofficial foundry system for Fabula Ultima, channeling the essence of the book while delivering the immersive experience of playing a JRPG in tabletop format.
MIT License
40 stars 18 forks source link

Popout! Module_openCheck() variable revisions #16

Closed infrastructureaxolotl closed 11 months ago

infrastructureaxolotl commented 11 months ago

These variable declarations don't work in the context of a popped out browser window without this revision:

primaryAttributeRef = $('select[name="system.rollInfo.attributes.primary.value"]').val();
secondaryAttributeRef = $('select[name="system.rollInfo.attributes.secondary.value"]').val();

Revision:

primaryAttributeRef = $(this.form).find('select[name="system.rollInfo.attributes.primary.value"]').val();
secondaryAttributeRef = $(this.form).find('select[name="system.rollInfo.attributes.secondary.value"]').val();