Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Javascript sort correct & incorrect don't work

#1

Using the drop-down menu to resort by correct and incorrect results in a random shuffle not a sorting.

Reported by lighthouse (at kanjitastic) · December 7th, 2009 @ 12:38 PM

State: resolved
Milestone: none

Activity

  1. lighthouse (at kanjitastic)
    lighthouse (at kanjitastic)
    • State changed from new to resolved

    The Cause

    When resorting the cards scores are uploaded to the server as part of the pre-resort process. After they are uploaded they are reset. This means that when the sort is called it's sorting on cards that all have a score of 0.

    The Solution

    I've added an object to the card's state that holds the score for the entire session without interfering with the score upload functions.

    It also turned out that sorting by seen and unseen was broken because only the first card shown was being marked as seen. Now they all are whenever they are shown.

    Getting the Fix

    The fix is in production and should be available to anyone that uses the site. If, however, you are using an iPhone or iPod touch you'll need to open up the site, and search for a new set of cards in order to get the update installed.

    December 7th, 2009 @ 06:16 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.