{"action":"closed","issue":{"url":"https://api.github.com/repos/CSS-Tricks/AnythingSlider/issues/543","labels_url":"https://api.github.com/repos/CSS-Tricks/AnythingSlider/issues/543/labels{/name}","comments_url":"https://api.github.com/repos/CSS-Tricks/AnythingSlider/issues/543/comments","events_url":"https://api.github.com/repos/CSS-Tricks/AnythingSlider/issues/543/events","html_url":"https://github.com/CSS-Tricks/AnythingSlider/issues/543","id":14432379,"number":543,"title":"turn off anythingslider navigation","user":{"login":"bmwboarder","id":4452150,"avatar_url":"https://avatars.githubusercontent.com/u/4452150?v=3","gravatar_id":"","url":"https://api.github.com/users/bmwboarder","html_url":"https://github.com/bmwboarder","followers_url":"https://api.github.com/users/bmwboarder/followers","following_url":"https://api.github.com/users/bmwboarder/following{/other_user}","gists_url":"https://api.github.com/users/bmwboarder/gists{/gist_id}","starred_url":"https://api.github.com/users/bmwboarder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmwboarder/subscriptions","organizations_url":"https://api.github.com/users/bmwboarder/orgs","repos_url":"https://api.github.com/users/bmwboarder/repos","events_url":"https://api.github.com/users/bmwboarder/events{/privacy}","received_events_url":"https://api.github.com/users/bmwboarder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CSS-Tricks/AnythingSlider/labels/Demo","name":"Demo","color":"ededed"},{"url":"https://api.github.com/repos/CSS-Tricks/AnythingSlider/labels/How%20to...","name":"How to...","color":"d7e102"},{"url":"https://api.github.com/repos/CSS-Tricks/AnythingSlider/labels/Question","name":"Question","color":"DDDDDD"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2013-05-16T23:52:08Z","updated_at":"2015-02-13T16:58:06Z","closed_at":"2015-02-13T16:58:06Z","body":"Hi,\r\nI'd like to disable the anythingslider navigation controls until the user does some event (that I'll control with javascript).  I can't seem to find a way that disables the switching of slides.  I don't want to completely disable the whole slider as in this: https://github.com/CSS-Tricks/AnythingSlider/issues/85\r\n\r\nBut I don't want the user to be able to change pages.  Well at least until they finish certain tasks.  So I would need a way to toggle on and off the controls.  \r\nI've got this going, but haven't had any success: \r\n\r\n```js\r\nonInitialized: function(e, slider) {\t\t\t\t\t\r\n\tif(slider.currentPage==1){\r\n\t\t//disable controls until user clicks checkbox\r\n\t\t//slider.slideControls();\r\n\t\t//.slider.enableNavigation(false); \r\n\t}\r\n```\r\n\r\nAny ideas?  Thanks!"}}