Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter differentC@rl

    (@differentcrl)

    Nevermind,

    I just copied the jquery_archive_list_animate function into my own js file and added the line.

    That way any updates you make shouldn’t effect my code.

    Thanks anyway!

    Here’s final code for anyone else:

    function jquery_archive_list_animate(clickedObj, options)
    {
        var changeSymbol = function (){
            jQuery(clickedObj).children('.jaw_symbol').html(options['ex_sym'])
        }
    
        if (jQuery(clickedObj).siblings('ul').children('li').is(':hidden')) {
        	jQuery('.expanded').removeClass('expanded')
            jQuery(clickedObj).children('.jaw_symbol').html(options['con_sym'])
    
            if(options['fx_in'] === 'fadeIn')
                jQuery(clickedObj).siblings('ul').children('li').fadeIn()
            else if (options['fx_in'] === 'slideDown')
                jQuery(clickedObj).siblings('ul').children('li').slideDown()
            else
                jQuery(clickedObj).siblings('ul').children('li').show()
        } else {
            if(options['fx_in'] === 'fadeIn')
                jQuery(clickedObj).siblings('ul').children('li').fadeOut('', changeSymbol)
            else if (options['fx_in'] === 'slideDown')
                jQuery(clickedObj).siblings('ul').children('li').slideUp('', changeSymbol)
            else
                jQuery(clickedObj).siblings('ul').children('li').hide(0, changeSymbol)
    
        }
    
        jQuery(clickedObj).parent().toggleClass('expanded')
    }
    Plugin Author Miguel Useche

    (@skatox)

    Wow this is a cool feature, could I add it for next version? you’ll be in the changelog credits.

    Great!
    this is exactly the feature I was lokking for.
    Unfortunatly it currently doesn’t work in my installation.

    I copied the lines above in my jquery-archive-list-widget/jal.js File.
    But nothing changed ??

    Than I realised, that in the backend-plugin-editor near the filename “inactive” is indicated (while jquery-archive-list-widget/jquery-archive-list-widget.php is indicated as “active” and the plug-in works in all other respect).

    Is there another place to save the edited code?

    Thanks a lot in advance and for your very appreciated work!

    Plugin Author Miguel Useche

    (@skatox)

    If you want to override my function, just do:

    window.jquery_archive_list_animate = function(){
      //Here put your custom code.
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Collapse all before revealing clicked’ is closed to new replies.