{"action":"closed","issue":{"url":"https://api.github.com/repos/ehynds/jquery-ui-multiselect-widget/issues/200","repository_url":"https://api.github.com/repos/ehynds/jquery-ui-multiselect-widget","labels_url":"https://api.github.com/repos/ehynds/jquery-ui-multiselect-widget/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/ehynds/jquery-ui-multiselect-widget/issues/200/comments","events_url":"https://api.github.com/repos/ehynds/jquery-ui-multiselect-widget/issues/200/events","html_url":"https://github.com/ehynds/jquery-ui-multiselect-widget/issues/200","id":2581644,"number":200,"title":"multiselect - not selecting items when optgroup title is clicked","user":{"login":"Zehzen","id":1268205,"avatar_url":"https://avatars.githubusercontent.com/u/1268205?v=3","gravatar_id":"","url":"https://api.github.com/users/Zehzen","html_url":"https://github.com/Zehzen","followers_url":"https://api.github.com/users/Zehzen/followers","following_url":"https://api.github.com/users/Zehzen/following{/other_user}","gists_url":"https://api.github.com/users/Zehzen/gists{/gist_id}","starred_url":"https://api.github.com/users/Zehzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zehzen/subscriptions","organizations_url":"https://api.github.com/users/Zehzen/orgs","repos_url":"https://api.github.com/users/Zehzen/repos","events_url":"https://api.github.com/users/Zehzen/events{/privacy}","received_events_url":"https://api.github.com/users/Zehzen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2011-12-16T16:49:56Z","updated_at":"2016-09-28T18:44:34Z","closed_at":"2016-09-28T18:44:34Z","body":"I recently downloaded the new 1.12 version of the multiselect widget and was having a problem with it not selecting the checkboxes when I click on the optgroup title.  I'm using IE 8, Windows XP SP 3, and the 1.12 multiselect widget.  I also tested this issue in Firefox and it worked correctly so I starting looking to see if I could figure out what was wrong.  The issue was in the file jquery.multiselect.filter.js line 73 char 5  which is the line:\r\n\r\n$inputs = $inputs.not( selector ).each(this._toggleState('checked', flag));\r\n\r\n\r\nFor some reason in IE the property this._toggleState was undefined but existed in Firefox.  So I changed line 73 to the following code:\r\n\r\nthis._toggleState = function (prop, flag) {\r\n\treturn function () {if (!this.disabled) {this[prop] = flag;}if (flag) {this.setAttribute(\"aria-selected\", true);} else {this.removeAttribute(\"aria-selected\");}};\r\n}\r\n$inputs = $inputs.not( selector ).each(this._toggleState('checked', flag));\r\n\r\n\r\nOnce that code was in place the multiselect worked properly in IE and Firefox."}}
{"actor":{"display_login":"mlh758"}}