Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

January 1 Sort Order #4

Open
nathangibbs opened this issue Sep 19, 2012 · 1 comment
Open

January 1 Sort Order #4

nathangibbs opened this issue Sep 19, 2012 · 1 comment

Comments

@nathangibbs
Copy link

If I use "January 1, 2012" as the date and sort "oldest" first, the year marker appears below the content item. If I use "January 2, 2012" the year marker displays above the item as it should. It appears that January 1st causes an issue but all other dates appear to work.

Example:

http://kpbs.webfactional.com/static/timeline/sort_test.html

@atmccann
Copy link

hey, using your script.js for the reverse sort order (thank you!) but now running into some issues on imagesLoaded -- seems to take a few seconds before the layout sorts itself out. i noticed you changed this part:

$('#timeline').imagesLoaded(function(){
        $('#timeline').isotope({
            itemSelector : '.item',
            transformsEnabled: true,
            layoutMode: 'spineAlign',
            spineAlign:{
                gutterWidth: 56
            },
            getSortData: {
                timestamp: function($elem){
                    return parseFloat($elem.find('.timestamp').text());
                }
            },
            sortBy: 'timestamp',
            sortAscending: (direction != 'newest'),      /*----> here! */
            itemPositionDataEnabled: true
        });
    });

did that affect your imagesLoaded at all too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants