llamasoft / Puca-Power

A JavaScript utility for better trading on PucaTrade.com
MIT License
34 stars 15 forks source link

Add-on trades not working for gold members #10

Closed CTristan closed 9 years ago

CTristan commented 9 years ago

I'm having a problem with PucaPower where it doesn't seem to be colorizing add-on trades for me. I debugged the javascript and found that the error lies in that there's an extra column on the Active Trades page called Delta for gold members that's between the Points and Foil columns.

In particular, the lines of code containing: $(curFields).eq(6).find('a.trader')

Had to be changed to the following for it to work for me: $(curFields).eq(7).find('a.trader')

CTristan commented 9 years ago

Added pull request that resolves the issue by dynamically finding the index for the Receiver column, so it should work for both normal and gold accounts. Unfortunately I do not have a normal account to test with.