Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9716

    Hi,

    the question has been asked before (http://www.kriesi.at/support/topic/portfolio-single-entry) but the solution wasn’t very clear for me. I need a clear step by step of which code goes where.

    Someone provided this solution:

    Well, it required some editing in avia.js. The function you need to adjust is $.fn.avia_ajax_portfolio. Here you have a controls.bind function. Basically this binds some behavior to the 3 control buttons.

    When you take a close look at this function, you will notice that the latest else if binds a function to the close button. Its this function you also need to bind to the sort buttons. And the sort buttons can be found with a selector: sortButtons = $(‘#js_sort_items a’, container);.

    I could not find the sortButtons, I didn’t find the exact same ‘#js_sort_items a’, container code, and I tried doing some different copy pasting of the 2 mentioned codes but I wasn’t sure which one and where they went.

    Could you please clarify?

    Thank you.

    #65670

    bump

    #65672

    Personally I’d modify $.fn.avia_iso_sort and I’m not sure what the user modified. I’d replace:

    links.bind('click',function()
    {
    var current = $(this);

    links.removeClass('active_sort');
    current.addClass('active_sort');
    selector = current.data('filter');
    container.css({overflow:"hidden"}).isotope({ layoutMode : 'customMode', itemSelector : '.flex_column' , filter: '.'+selector}, set_container );

    with:

    links.bind('click',function()
    {
    var current = $(this);

    links.removeClass('active_sort');
    current.addClass('active_sort');
    selector = current.data('filter');
    container.css({overflow:"hidden"}).isotope({ layoutMode : 'customMode', itemSelector : '.flex_column' , filter: '.'+selector}, set_container );

    $('.ajax_slide').css({display:"none"}).removeClass('active_ajax_slide');
    $('.active_portfolio_item').removeClass('active_portfolio_item');
    $('.ajax-control').removeClass('visible_controls').css({display:"none"});
    $('.ajax-portfolio-response').css({height:'auto'});

    #65673

    Hey Dude,

    Thanks. This works!

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘closing portfolio item when clicking on sortable filters’ is closed to new replies.