diff --git a/src/macros_new/gowlers-tracking-ledger/foundry.gowlershome.dyndns.org/modules/gowlers-tracking-ledger/scripts/gowlers-tracking-ledger.js b/src/macros_new/gowlers-tracking-ledger/foundry.gowlershome.dyndns.org/modules/gowlers-tracking-ledger/scripts/gowlers-tracking-ledger.js index 8f887509..6b8a65ff 100644 --- a/src/macros_new/gowlers-tracking-ledger/foundry.gowlershome.dyndns.org/modules/gowlers-tracking-ledger/scripts/gowlers-tracking-ledger.js +++ b/src/macros_new/gowlers-tracking-ledger/foundry.gowlershome.dyndns.org/modules/gowlers-tracking-ledger/scripts/gowlers-tracking-ledger.js @@ -1,6 +1,6 @@ const MODULE_ID = "gowlers-tracking-ledger"; -const MODULE_VERSION = "0.1.6"; +const MODULE_VERSION = "0.1.7"; const TRACK_SETTING = "actorSettings"; const FLAG_SCOPE = "world"; const MAX_HISTORY_ROWS = 100; @@ -350,22 +350,7 @@ function openHistoryDialog(actor, initialTab = "hp") { return; } - // Tab switching - $root.find('.history-tab-btn').off('click').on('click', function(e) { - e.preventDefault(); - const tabId = $(this).attr('data-tab-id'); - console.log("[GowlersTracking] Tab button clicked:", tabId); - - // Remove active from all tabs and hide all panels - $root.find('.history-tab-btn').removeClass('active'); - $root.find('[data-history-panel]').hide(); - - // Add active to clicked tab and show its panel - $root.find(`.history-tab-btn[data-tab-id="${tabId}"]`).addClass('active'); - $root.find(`[data-history-panel="${tabId}"]`).show(); - - console.log("[GowlersTracking] Panel switched to:", tabId); - }); + console.log("[GowlersTracking] Dialog render hook called, adding config button..."); // Add config icon to dialog header (GM only) if (game.user?.isGM) { diff --git a/src/macros_new/gowlers-tracking-ledger/module.json b/src/macros_new/gowlers-tracking-ledger/module.json index 76ccaf9b..72394410 100644 --- a/src/macros_new/gowlers-tracking-ledger/module.json +++ b/src/macros_new/gowlers-tracking-ledger/module.json @@ -3,7 +3,7 @@ "type": "module", "title": "Gowler's Tracking Ledger", "description": "Adds HP/XP/Currency log buttons to PF1 sheets and opens the tracking dialog preloaded with the actor's logs.", - "version": "0.1.6", + "version": "0.1.7", "authors": [ { "name": "Gowler", "url": "https://foundryvtt.com" } ],