Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 18, 2015
  1. @mislav

    Merge pull request #503 from staabm/patch-2

    mislav authored
    documented `false` as a allowed `scrollTo` value
  2. @staabm
Commits on Mar 13, 2015
  1. @mislav

    Merge branch 'docs'

    mislav authored
    Fixes #329 [ci skip]
  2. @mislav
  3. @mislav
  4. @mislav

    Grammar, capitalization

    mislav authored
  5. @mislav

    "Introduction" heading

    mislav authored
  6. @mislav
  7. @mislav

    Nicer link in Readme

    mislav authored
  8. @mislav
  9. @mislav
  10. @mislav
  11. @mislav
  12. @mislav

    Merge pull request #500 from AlexHill/use_pageyoffset

    mislav authored
    Use pageYOffset over scrollY for IE9+ support
Commits on Mar 9, 2015
  1. @AlexHill
Commits on Mar 7, 2015
  1. @mislav

    pjax 1.9.5

    mislav authored
  2. @mislav
  3. @mislav

    Merge branch 'abort-xhr'

    mislav authored
  4. @mislav

    Merge remote-tracking branch 'origin/master' into abort-xhr

    mislav authored
    Conflicts:
    	jquery.pjax.js
  5. @mislav

    Merge branch 'scroll-fixes'

    mislav authored
    Closes #474
  6. @mislav

    Remove superfluous scroll test

    mislav authored
    This scroll test is inferior to anchor scrolling tests in pjax_fallback.js
  7. @mislav

    Avoiding calling `scrollTop()` twice

    mislav authored
    When there is an anchor element referenced by the hash in the URL, we
    would call `scrollTop()` first with zero, then with the element
    position. Now, ensure that we only call scrollTop once at most.
  8. @mislav

    Reflect the hash of the URI in `state.url`

    mislav authored
    * Simplifies hash handling code;
    * Avoids the extra replaceState;
    * Ensures full URL (with hash) is in `state.url`.
  9. @mislav

    Keep hash in temporarily changed URL while the page is loading

    mislav authored
    If you navigate with pjax to `/foo.html#bar`, the URL bar will change to
    `/foo.html` while the page is loading, but only add `#bar` when it's
    finished. There's some debate about whether we should be changing the
    URL at all while loading, because browsers don't seem to do it until the
    page starts sending data back. However, while we're still changing the
    URL, it's worth ensuring that at least that URL is complete.
  10. @mislav

    Decode hash value before querying for named anchor

    mislav authored
    With a URL like `#%24.ajax`, we need to first decode the value before
    searching the DOM for the element named `$.ajax`.
    
    In Firefox, this is not necessary, as the browser already auto-decodes
    hash values. Therefore, in Firefox this will perform double-decoding,
    which could theoretically lead to inability to match anchors that
    contain a percent-encoded value literally. However, since Firefox also
    seems to automatically decode values for anchors named via `name="..."`
    HTML attribute, you're going to have a bad time anyway with named
    anchors that contain percent-encoded characters literally, with or
    without pjax.
  11. @mislav

    Scroll to named anchors after pjax navigation

    mislav authored
    Only elements with IDs were supported before. But since the browser will
    natively also scroll to matching `<a name="...">` elements, we need to
    support those as well.
  12. @mislav

    Remove test that fails on WebKit due to bizzare iframe bug

    mislav authored
    The test verifies that, in an iframe, we can navigate to another page
    and then press browser's Back button to restore the previous page.
    
    However, on Chrome and Safari in pjax-disabled mode (browser native
    behavior) doing `frame.history.back()` actually goes back in the top
    frame, effectively navigating away from the test suite that's running.
    There doesn't seem a way to carefully sandbox browser history navigation
    to just inside the iframe.
    
    Because this test has the potential to intermittently screw up the whole
    test suite run, :fire: it without mercy as I've already spent countless
    hours trying to debug this and have better things to do with my life.
  13. @mislav

    Fix accidental global

    mislav authored
  14. @mislav
  15. @mislav

    Merge branch 'mixed-containers'

    mislav authored
    Fixes #419
  16. @mislav

    Fix popstate with different pjax containers

    mislav authored
    When navigating back, the container to restore the cached contents of is
    that of `previousState`, not the current state that was popped.
  17. @mislav

    Merge branch 'eval-fix'

    mislav authored
    Fixes #469
  18. @mislav

    Fix executing SCRIPT tags on pjax back/forward

    mislav authored
    After jQuery eval's a SCRIPT tag for the first time, it tags it with an
    internal flag "globalEval" that is kept even after cloning and prevents
    the same script from getting executed again.
    
    Now reset that property when writing to pjax cache, so that back/forward
    navigation properly re-executes inline SCRIPT tags.
Commits on Mar 2, 2015
  1. @mislav

    Fix docs stating that `body` is the default value for `fragment`

    mislav authored
    That's not exactly true, as we require users to specify an explicit
    `fragment` value if they're dealing with full-HTML responses from the
    server. This explicit value can be "body" if the user chooses so, but
    that must be decided on a per-app basis.
    
    If no explicit `fragment` value is provided, a full-HTML response will
    trigger a native reload of the page.
    
    Closes #475 [ci skip]
  2. @mislav

    Merge pull request #496 from defunkt/strip-params

    mislav authored
    Strip jQuery's cache-busting parameter
Something went wrong with that request. Please try again.