{"action":"created","issue":{"url":"https://api.github.com/repos/DevTips/Artists-Theme/issues/71","labels_url":"https://api.github.com/repos/DevTips/Artists-Theme/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/DevTips/Artists-Theme/issues/71/comments","events_url":"https://api.github.com/repos/DevTips/Artists-Theme/issues/71/events","html_url":"https://github.com/DevTips/Artists-Theme/pull/71","id":53270442,"number":71,"title":"Chain sliding work-belt after work-container showing/hiding is done.","user":{"login":"piotrhajduga","id":764305,"avatar_url":"https://avatars.githubusercontent.com/u/764305?v=3","gravatar_id":"","url":"https://api.github.com/users/piotrhajduga","html_url":"https://github.com/piotrhajduga","followers_url":"https://api.github.com/users/piotrhajduga/followers","following_url":"https://api.github.com/users/piotrhajduga/following{/other_user}","gists_url":"https://api.github.com/users/piotrhajduga/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrhajduga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrhajduga/subscriptions","organizations_url":"https://api.github.com/users/piotrhajduga/orgs","repos_url":"https://api.github.com/users/piotrhajduga/repos","events_url":"https://api.github.com/users/piotrhajduga/events{/privacy}","received_events_url":"https://api.github.com/users/piotrhajduga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-02T18:59:41Z","updated_at":"2015-01-03T00:02:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DevTips/Artists-Theme/pulls/71","html_url":"https://github.com/DevTips/Artists-Theme/pull/71","diff_url":"https://github.com/DevTips/Artists-Theme/pull/71.diff","patch_url":"https://github.com/DevTips/Artists-Theme/pull/71.patch"},"body":"Reference http://api.jquery.com/jQuery.when/ - I added chaining of actions for showing/hiding work-container. Now the belt is slided only after the work-container is shown/hidden.\r\n\r\nIt may not be visible at first, but I thought it showcases nicely how you can chain actions whenever needed :)"},"comment":{"url":"https://api.github.com/repos/DevTips/Artists-Theme/issues/comments/68574665","html_url":"https://github.com/DevTips/Artists-Theme/pull/71#issuecomment-68574665","issue_url":"https://api.github.com/repos/DevTips/Artists-Theme/issues/71","id":68574665,"user":{"login":"piotrhajduga","id":764305,"avatar_url":"https://avatars.githubusercontent.com/u/764305?v=3","gravatar_id":"","url":"https://api.github.com/users/piotrhajduga","html_url":"https://github.com/piotrhajduga","followers_url":"https://api.github.com/users/piotrhajduga/followers","following_url":"https://api.github.com/users/piotrhajduga/following{/other_user}","gists_url":"https://api.github.com/users/piotrhajduga/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrhajduga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrhajduga/subscriptions","organizations_url":"https://api.github.com/users/piotrhajduga/orgs","repos_url":"https://api.github.com/users/piotrhajduga/repos","events_url":"https://api.github.com/users/piotrhajduga/events{/privacy}","received_events_url":"https://api.github.com/users/piotrhajduga/received_events","type":"User","site_admin":false},"created_at":"2015-01-03T00:02:41Z","updated_at":"2015-01-03T00:02:41Z","body":"Also, after watching the episode about the javascript for the Clients section I refactored the code and removed a looooooot of jquery mumbo-jumbo :)\r\n\r\nThe code now is based on semi-global `position` variable that stores the current position. And there is one function `setActiveClient` that uses this variable to set the proper classes on proper elements. All in one place, DRY :)"}}