Author Topic: "Save Sorting" not working with "Level %"  (Read 4839 times)

Greysteele

  • Minion
  • **
  • Posts: 31
"Save Sorting" not working with "Level %"
« on: April 08, 2009, 03:40:30 AM »
I reported this months ago, but it seems to keep falling off the to-do list...

If you select "Level %" (that's Level PERCENT, not just Level) and then click on "Save Sorting", it says "Characters now set to sort by the LEVEL column".  And it does just that - sorts by the LEVEL column instead of the LEVEL PERCENT column. 

This problem is caused by the wrong ID being used on the column header label:
   
   <thead>
      <tr>
         <th id="faction">Fac</th>
         <th id="origin">Or</th>
         <th id="archetype">Ar</th>
         <th id="hidden">Hide</th>
         <th id="image">Img</th>
         <th id="flag">Flag</th>
         <th id="name">Name</th>
         <th id="level">Level</th>
         <th id="server">Server</th>
         <th id="primary">Primary</th>
         <th id="secondary">Secondary</th>
         <th id="offline">Days Offline</th>
         <th id="level">Lvl %</th>
         <th id="badges">Badges</th>
         <th>Actions</th>
      </tr>
   </thead>
         
Fixing that typo may not fix the problem, but it is definitely a start...

Steiner

  • Elite Boss
  • *****
  • Posts: 1,602
    • Steinerd.com
Re: "Save Sorting" not working with "Level %"
« Reply #1 on: April 08, 2009, 03:55:56 AM »
You're quite right. however Luckily for us. jQuery (the javascript frame work used for that) just recently had an upgrade. I can sort by the data within the tags now... won't have to worry about id's and attributes before the actual info.

Putting on my personal task list. Quick fix.
~Steinerd

Greysteele

  • Minion
  • **
  • Posts: 31
Re: "Save Sorting" not working with "Level %"
« Reply #2 on: May 04, 2009, 09:40:50 PM »
BTW, this still isn't working right.  Oddly enough, when you sort by level pct and then click "Save Sorting", it says that it is "... now set to sort by the level_percent column" (which is a partial improvement), BUT it still doesn't actually save that sort setting.  I can do a refresh and it sorted differently- Looks like alpha by toon name.

Steiner

  • Elite Boss
  • *****
  • Posts: 1,602
    • Steinerd.com
Re: "Save Sorting" not working with "Level %"
« Reply #3 on: May 04, 2009, 10:09:48 PM »
hmmm... I just thought it threw the column name in there... must be some logic to the code I was unaware of. I'll check it out.
~Steinerd

SaintNicster

  • Elite Boss
  • *****
  • Posts: 865
Re: "Save Sorting" not working with "Level %"
« Reply #4 on: May 05, 2009, 12:22:59 AM »
BTW, this still isn't working right.  Oddly enough, when you sort by level pct and then click "Save Sorting", it says that it is "... now set to sort by the level_percent column" (which is a partial improvement), BUT it still doesn't actually save that sort setting.  I can do a refresh and it sorted differently- Looks like alpha by toon name.
I'm working this one, to "give Steiner a break".  I think I've got it, just need to figure out one thing


SaintNicster

  • Elite Boss
  • *****
  • Posts: 865
Re: "Save Sorting" not working with "Level %"
« Reply #5 on: May 05, 2009, 02:39:40 PM »
I'm working this one, to "give Steiner a break".  I think I've got it, just need to figure out one thing
Steiner pushed the code this morning.  Can you try sorting the "level percent" column, saving, then reloading the page to confirm for me?


BlindFaith

  • Minion
  • **
  • Posts: 35
Re: "Save Sorting" not working with "Level %"
« Reply #6 on: May 05, 2009, 05:26:46 PM »
Anybody think about fixing the actual percentages? The current level is fine, but the numbers over 100% are incorrect. They are a simple percentage of the level target that you just completed, not the new one(s). I know this will be low priority, but I have not seen anyone mention it before...

SaintNicster

  • Elite Boss
  • *****
  • Posts: 865
Re: "Save Sorting" not working with "Level %"
« Reply #7 on: May 05, 2009, 06:01:03 PM »
Anybody think about fixing the actual percentages? The current level is fine, but the numbers over 100% are incorrect. They are a simple percentage of the level target that you just completed, not the new one(s). I know this will be low priority, but I have not seen anyone mention it before...

I've always thought of it as an indicator of "Man, I really need to train this toon".  Plus it is funny to see a character with 500%+ of the required XP needed.


BlindFaith

  • Minion
  • **
  • Posts: 35
Re: "Save Sorting" not working with "Level %"
« Reply #8 on: May 05, 2009, 06:10:36 PM »
It's really funny to have 856% and only need to train 3 levels...

Greysteele

  • Minion
  • **
  • Posts: 31
Re: "Save Sorting" not working with "Level %"
« Reply #9 on: May 06, 2009, 02:19:07 PM »
SaintNicster, this is partially fixed.  It will save a sort by the Level Percent column, but only ascending, not descending.

Getting there...

SaintNicster

  • Elite Boss
  • *****
  • Posts: 865
Re: "Save Sorting" not working with "Level %"
« Reply #10 on: May 06, 2009, 03:38:47 PM »
SaintNicster, this is partially fixed.  It will save a sort by the Level Percent column, but only ascending, not descending.

Getting there...

hurm...

*dives back in*


Tazhyngarth

  • Elite Boss
  • *****
  • Posts: 2,085
    • Titan Network
Re: "Save Sorting" not working with "Level %"
« Reply #11 on: May 06, 2009, 04:19:48 PM »
Need this?

Quote
# $sort_direction.', name des, server_name des';
# $sort_direction = '';

Steiner

  • Elite Boss
  • *****
  • Posts: 1,602
    • Steinerd.com
Re: "Save Sorting" not working with "Level %"
« Reply #12 on: May 06, 2009, 04:28:00 PM »
stab the type-o monkey!
~Steinerd

SaintNicster

  • Elite Boss
  • *****
  • Posts: 865
Re: "Save Sorting" not working with "Level %"
« Reply #13 on: May 06, 2009, 05:51:22 PM »
*thwaps the code upside the head*

Working now.  Helps if I commit the right copy of the code >.>


Greysteele

  • Minion
  • **
  • Posts: 31
Re: "Save Sorting" not working with "Level %"
« Reply #14 on: May 07, 2009, 04:24:33 AM »
Mooch ass grassy ass, scene your!

Sorry... Still recovering from Cinco de mayo.

That got it.  Fixed.