sublimevideo.load and quicksand

I'm trying to get the lightbox to work with jquery.quicksand.js. When I first load the page it works fine. I can launch a video in a lightbox. However, if a apply the sorting with quicksand, the lightbox link just opens up the video on a new page. It doesn't create the box. I assume it has to do with quicksand making copies of everything in my list. I think I have to do sublimevideo.load(), but I'm having trouble with it.

Here is a link to the test version:
Site
1 person has
this problem
+1
Reply
  • This reply was removed on 2012-05-14.
    see the change log
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • Hi Daniel,

    I don't think you have to call sublimevideo.load() here.

    But you should definitely call sublimevideo.prepare() after any re-sorting.

    Something like this:

    jQuery(".portfolio_content").quicksand(filter_to_pass_to_quicksand, {
    useScaling: false,
    duration: 700,
    easing: 'easeInOutQuad',
    enhancement: function() {

    }
    }, function(){

    //callback
    jQuery('.port_home_slider').nivoSlider({
    effect: 'fade',
    manualAdvance: true,
    controlNav: false,
    keyboardNav: false
    });

    $('video.sublime.lightbox').each(function(){sublimevideo.prepare(this);});

    //Count number of items shown and resize portfolio_content appropriately
    var num_shown = jQuery('.portfolio_content').find('.slider-wrapper').length;

    //For each row of 4, we need row_px in height
    var num_rows = Math.ceil(num_shown/4);

    });


    You don't have to use sublimevideo.ready here since the SublimeVideo API object is already loaded.

    Hope that helps, let me know if you need further instructions on this.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited