{"action":"created","issue":{"url":"https://api.github.com/repos/caciobanu/improved-magento-layered-navigation/issues/27","labels_url":"https://api.github.com/repos/caciobanu/improved-magento-layered-navigation/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/caciobanu/improved-magento-layered-navigation/issues/27/comments","events_url":"https://api.github.com/repos/caciobanu/improved-magento-layered-navigation/issues/27/events","html_url":"https://github.com/caciobanu/improved-magento-layered-navigation/pull/27","id":119744404,"number":27,"title":"CE &EE handler.js swatch bug (resolves #26)","user":{"login":"philwinkle","id":589550,"avatar_url":"https://avatars.githubusercontent.com/u/589550?v=3","gravatar_id":"","url":"https://api.github.com/users/philwinkle","html_url":"https://github.com/philwinkle","followers_url":"https://api.github.com/users/philwinkle/followers","following_url":"https://api.github.com/users/philwinkle/following{/other_user}","gists_url":"https://api.github.com/users/philwinkle/gists{/gist_id}","starred_url":"https://api.github.com/users/philwinkle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwinkle/subscriptions","organizations_url":"https://api.github.com/users/philwinkle/orgs","repos_url":"https://api.github.com/users/philwinkle/repos","events_url":"https://api.github.com/users/philwinkle/events{/privacy}","received_events_url":"https://api.github.com/users/philwinkle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-01T15:46:37Z","updated_at":"2015-12-01T15:47:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/caciobanu/improved-magento-layered-navigation/pulls/27","html_url":"https://github.com/caciobanu/improved-magento-layered-navigation/pull/27","diff_url":"https://github.com/caciobanu/improved-magento-layered-navigation/pull/27.diff","patch_url":"https://github.com/caciobanu/improved-magento-layered-navigation/pull/27.patch"},"body":"To reproduce: \r\n\r\n- In the CLP load a page with configurable swatches on _page 2_ of a multi-page paginated category list\r\n- Switch to page 2\r\n- Select the swatch below the product \r\n\r\nExpected: switch product image\r\nResult: no Ajax call\r\n\r\n\r\nFix in this pull:\r\n\r\n- The handler js for EE and CE called init() on the ConfigurableSwatches, instead we should call the $j document trigger which will do this for us\r\n- There is a race condition when this is called because the page hasn't finished loading ajax content before the handler is recalled, then the items are replaced; effect is no click handlers for the sub-product swatch\r\n\r\nThis resolves #26."},"comment":{"url":"https://api.github.com/repos/caciobanu/improved-magento-layered-navigation/issues/comments/161006535","html_url":"https://github.com/caciobanu/improved-magento-layered-navigation/pull/27#issuecomment-161006535","issue_url":"https://api.github.com/repos/caciobanu/improved-magento-layered-navigation/issues/27","id":161006535,"user":{"login":"philwinkle","id":589550,"avatar_url":"https://avatars.githubusercontent.com/u/589550?v=3","gravatar_id":"","url":"https://api.github.com/users/philwinkle","html_url":"https://github.com/philwinkle","followers_url":"https://api.github.com/users/philwinkle/followers","following_url":"https://api.github.com/users/philwinkle/following{/other_user}","gists_url":"https://api.github.com/users/philwinkle/gists{/gist_id}","starred_url":"https://api.github.com/users/philwinkle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwinkle/subscriptions","organizations_url":"https://api.github.com/users/philwinkle/orgs","repos_url":"https://api.github.com/users/philwinkle/repos","events_url":"https://api.github.com/users/philwinkle/events{/privacy}","received_events_url":"https://api.github.com/users/philwinkle/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T15:47:18Z","updated_at":"2015-12-01T15:47:18Z","body":"@caciobanu this is an issue on all production sites. Merging. Thanks to @Militree for identifying and fixing. "}}