aidanlister / jquery-stickytabs

Provides persistant state (back and forward button support) for Bootstrap tabs
http://aidanlister.com/2014/03/persisting-the-tab-state-in-bootstrap/
MIT License
60 stars 33 forks source link

Multiple forms not supported correctly #31

Closed agferrier closed 7 years ago

agferrier commented 7 years ago

If you have multiple forms on a single page with different actions, then the changeFormHash method will set the action url of every form on the page to the action url of the first form with the tab anchor appended.

        function changeFormHash(hash) {
            if ($("form").length != 0) {
                action_parts = $('form').attr('action').split('#');
                $('form').attr('action', action_parts[0] + '#' + hash);
            }
        }

UPDATE: Actually, I've just noticed that I was using a version from December 2015 (still versioned in the source as 1.2.0) but the current version has been much modified and no longer causes the issue.

agferrier commented 7 years ago

Closing as relates to an old version