• I have been using File Away for a few years now and one of the nuances is when clicking on a Folder to view all corresponding files, it forces the page to go back to the top. In the case of my re-development site above that uses 1 page navigation, it throws the user back to the Home page whenever clicking on a different archive folder (see Archived Years accordion for newsletters).

    I did read that you are working on a “Pay to Play” version of File Away but is there any way to stop this annoying action now with the current plugin version?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author thomstark

    (@thomstark)

    Current File Away directory nav uses http navigation. I.e., it refreshes the page to go into a new directory. So, no. I’m sorry you’re annoyed by its behavior in your specific use case. The new version will navigate by ajax, so no page refreshes, but I am trying to pay the bills and it is a ways off. File Away was not designed to be used inside tabbed navigation. You can probably write your own JavaScript to focus the file away tab whenever file away’s query string is in the address bar though.

    Thread Starter eclerkin

    (@eclerkin)

    Ok, thanks for the response but it also begs the question of how to write javascript to force focus on the File Away tab just clicked. Sorry, not familiar with javascript language or structure but I can certainly learn.

    Plugin Author thomstark

    (@thomstark)

    Well, for instance, you could hire a developer to write you something like this and place it at the bottom of your html before the </body> tag:

    <script>
    if(window.location.href.indexOf('drawer1=') !== -1)
    {
    	jQuery('html,body').animate({'scrollTop':jQuery('div#our_newsletters').offset().top}, 100);
    	jQuery('li#archived_years').trigger('click');
    }
    </script>

    ??

    Plugin Author thomstark

    (@thomstark)

    If that doesn’t work, then:

    <script>
    jQuery(document).ready(function($)
    {
    	if(window.location.href.indexOf('drawer1=') !== -1)
    	{
    		$('html,body').animate({'scrollTop':$('div#our_newsletters').offset().top}, 100);
    		$('li#archived_years').trigger('click');
    	}
    });
    </script>
    Plugin Author thomstark

    (@thomstark)

    Or yet more simply:

    <script>
    jQuery(document).ready(function($)
    {
    	if(window.location.href.indexOf('drawer1=') !== -1)
    	{
    		window.location.hash = "#our_newsletters";
    		$('li#archived_years').trigger('click');
    	}
    });
    </script>
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Folder click and corresponding page reaction’ is closed to new replies.