{"action":"created","issue":{"url":"https://api.github.com/repos/openSUSE/osem/issues/679","labels_url":"https://api.github.com/repos/openSUSE/osem/issues/679/labels{/name}","comments_url":"https://api.github.com/repos/openSUSE/osem/issues/679/comments","events_url":"https://api.github.com/repos/openSUSE/osem/issues/679/events","html_url":"https://github.com/openSUSE/osem/pull/679","id":88235916,"number":679,"title":"Rework bootstrapSwitch","user":{"login":"differentreality","id":4322737,"avatar_url":"https://avatars.githubusercontent.com/u/4322737?v=3","gravatar_id":"","url":"https://api.github.com/users/differentreality","html_url":"https://github.com/differentreality","followers_url":"https://api.github.com/users/differentreality/followers","following_url":"https://api.github.com/users/differentreality/following{/other_user}","gists_url":"https://api.github.com/users/differentreality/gists{/gist_id}","starred_url":"https://api.github.com/users/differentreality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/differentreality/subscriptions","organizations_url":"https://api.github.com/users/differentreality/orgs","repos_url":"https://api.github.com/users/differentreality/repos","events_url":"https://api.github.com/users/differentreality/events{/privacy}","received_events_url":"https://api.github.com/users/differentreality/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openSUSE/osem/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-14T19:32:38Z","updated_at":"2015-07-02T10:02:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openSUSE/osem/pulls/679","html_url":"https://github.com/openSUSE/osem/pull/679","diff_url":"https://github.com/openSUSE/osem/pull/679.diff","patch_url":"https://github.com/openSUSE/osem/pull/679.patch"},"body":"I am moving the js code for switch outside of the $(document).ready function, which results in us not being able to click on the switch button in events#index, but that's not necessarily a problem, since index page is not supposed to change stuff anyway.\r\nevent#edit works fine.\r\n\r\nI have also re-written the js code for switch so that it can be used in any place, for any model.\r\nWhen the switch-checkbox is introduced in the view, one needs to pass a method and a url (where the switch should redirect to). If we have all the data given into that URL, the switch can work regrdless of the model or attribute that is being changed."},"comment":{"url":"https://api.github.com/repos/openSUSE/osem/issues/comments/117987148","html_url":"https://github.com/openSUSE/osem/pull/679#issuecomment-117987148","issue_url":"https://api.github.com/repos/openSUSE/osem/issues/679","id":117987148,"user":{"login":"hennevogel","id":514785,"avatar_url":"https://avatars.githubusercontent.com/u/514785?v=3","gravatar_id":"","url":"https://api.github.com/users/hennevogel","html_url":"https://github.com/hennevogel","followers_url":"https://api.github.com/users/hennevogel/followers","following_url":"https://api.github.com/users/hennevogel/following{/other_user}","gists_url":"https://api.github.com/users/hennevogel/gists{/gist_id}","starred_url":"https://api.github.com/users/hennevogel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hennevogel/subscriptions","organizations_url":"https://api.github.com/users/hennevogel/orgs","repos_url":"https://api.github.com/users/hennevogel/repos","events_url":"https://api.github.com/users/hennevogel/events{/privacy}","received_events_url":"https://api.github.com/users/hennevogel/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T10:02:22Z","updated_at":"2015-07-02T10:02:22Z","body":":+1: go :fireworks: "}}