{"action":"created","issue":{"url":"https://api.github.com/repos/bernat/best_in_place/issues/442","labels_url":"https://api.github.com/repos/bernat/best_in_place/issues/442/labels{/name}","comments_url":"https://api.github.com/repos/bernat/best_in_place/issues/442/comments","events_url":"https://api.github.com/repos/bernat/best_in_place/issues/442/events","html_url":"https://github.com/bernat/best_in_place/issues/442","id":55811096,"number":442,"title":"FIX: For working checkboxes","user":{"login":"samstickland","id":9951571,"avatar_url":"https://avatars.githubusercontent.com/u/9951571?v=3","gravatar_id":"","url":"https://api.github.com/users/samstickland","html_url":"https://github.com/samstickland","followers_url":"https://api.github.com/users/samstickland/followers","following_url":"https://api.github.com/users/samstickland/following{/other_user}","gists_url":"https://api.github.com/users/samstickland/gists{/gist_id}","starred_url":"https://api.github.com/users/samstickland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samstickland/subscriptions","organizations_url":"https://api.github.com/users/samstickland/orgs","repos_url":"https://api.github.com/users/samstickland/repos","events_url":"https://api.github.com/users/samstickland/events{/privacy}","received_events_url":"https://api.github.com/users/samstickland/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-28T20:31:21Z","updated_at":"2015-02-09T02:53:56Z","closed_at":null,"body":"Hi,\r\n\r\nI had a problem where checkboxes were issuing ajax updates when clicked but they didn't change their display. I tracked the problem down to line 126 - 129 in lib/assets/javascripts/best_in_place.js:\r\n\r\n            case \"checkbox\":\r\n                editor.element.html(this.arrayToObject(this.values)[value]);\r\n                break;\r\n\r\nThe problem is that this.values is already an array, not an object. This slight change fixes the problem:\r\n\r\n            case \"checkbox\":\r\n                editor.element.html(this.values[value]);\r\n                break;"},"comment":{"url":"https://api.github.com/repos/bernat/best_in_place/issues/comments/73450596","html_url":"https://github.com/bernat/best_in_place/issues/442#issuecomment-73450596","issue_url":"https://api.github.com/repos/bernat/best_in_place/issues/442","id":73450596,"user":{"login":"jcmagalhaes","id":815198,"avatar_url":"https://avatars.githubusercontent.com/u/815198?v=3","gravatar_id":"","url":"https://api.github.com/users/jcmagalhaes","html_url":"https://github.com/jcmagalhaes","followers_url":"https://api.github.com/users/jcmagalhaes/followers","following_url":"https://api.github.com/users/jcmagalhaes/following{/other_user}","gists_url":"https://api.github.com/users/jcmagalhaes/gists{/gist_id}","starred_url":"https://api.github.com/users/jcmagalhaes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcmagalhaes/subscriptions","organizations_url":"https://api.github.com/users/jcmagalhaes/orgs","repos_url":"https://api.github.com/users/jcmagalhaes/repos","events_url":"https://api.github.com/users/jcmagalhaes/events{/privacy}","received_events_url":"https://api.github.com/users/jcmagalhaes/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T02:53:56Z","updated_at":"2015-02-09T02:53:56Z","body":":+1: \r\nHad the same problem and the solution provided fixed the issue"}}