{"action":"created","issue":{"url":"https://api.github.com/repos/moonstonemedia/WP-Google-Calendar-Events/issues/51","labels_url":"https://api.github.com/repos/moonstonemedia/WP-Google-Calendar-Events/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/moonstonemedia/WP-Google-Calendar-Events/issues/51/comments","events_url":"https://api.github.com/repos/moonstonemedia/WP-Google-Calendar-Events/issues/51/events","html_url":"https://github.com/moonstonemedia/WP-Google-Calendar-Events/issues/51","id":104048314,"number":51,"title":"When first dropping a calendar widget in active widgets sidebar select2 calendar id dropdown can't be opened","user":{"login":"nekojira","id":1227930,"avatar_url":"https://avatars.githubusercontent.com/u/1227930?v=3","gravatar_id":"","url":"https://api.github.com/users/nekojira","html_url":"https://github.com/nekojira","followers_url":"https://api.github.com/users/nekojira/followers","following_url":"https://api.github.com/users/nekojira/following{/other_user}","gists_url":"https://api.github.com/users/nekojira/gists{/gist_id}","starred_url":"https://api.github.com/users/nekojira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nekojira/subscriptions","organizations_url":"https://api.github.com/users/nekojira/orgs","repos_url":"https://api.github.com/users/nekojira/repos","events_url":"https://api.github.com/users/nekojira/events{/privacy}","received_events_url":"https://api.github.com/users/nekojira/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/moonstonemedia/WP-Google-Calendar-Events/labels/admin","name":"admin","color":"fef2c0"},{"url":"https://api.github.com/repos/moonstonemedia/WP-Google-Calendar-Events/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/moonstonemedia/WP-Google-Calendar-Events/milestones/2","html_url":"https://github.com/moonstonemedia/WP-Google-Calendar-Events/milestones/3.0.0","labels_url":"https://api.github.com/repos/moonstonemedia/WP-Google-Calendar-Events/milestones/2/labels","id":1253853,"number":2,"title":"3.0.0","description":"* Feature: Modular and extensible plugin will support add-ons.\r\n* Feature: Ability to support new calendar types and events sources.\r\n* Feature: Redesigned default calendar with responsive mobile mode.\r\n* Feature: Completely redesigned the admin user interface.\r\n* Feature: Many new settings in admin dashboard, with better semantics.\r\n* Feature: A System Report page to help you troubleshoot problems and improve support response.\r\n* Tweak: Use categories to organize your calendars.\r\n* Tweak: Feeds moved from 'gce_feed' to 'calendar' post type, permalink change. Update any links.\r\n* Fix: Timezones handling are more accurate.\r\n* Fix: Incompatibilities with themes and other plugins.\r\n* Fix: Several bugfixes.\r\n* Localization: Although much of the plugin has changed, translations are now handled with [Transifex](http://www.transifex.com).\r\n* Refactor: Plugin rebuilt from ground up: namespaces, closures, Composer support, entirely OOP.\r\n* Dev: PHP 5.3 minimum required. \r\n* Dev: All datetime and timezone functions should be handled by [Carbon](http://carbon.nesbot.com/) from now on.\r\n* Dev: All requests to Google from now on will be handled with the official [Google API PHP Client](https://github.com/google/google-api-php-client).","creator":{"login":"nekojira","id":1227930,"avatar_url":"https://avatars.githubusercontent.com/u/1227930?v=3","gravatar_id":"","url":"https://api.github.com/users/nekojira","html_url":"https://github.com/nekojira","followers_url":"https://api.github.com/users/nekojira/followers","following_url":"https://api.github.com/users/nekojira/following{/other_user}","gists_url":"https://api.github.com/users/nekojira/gists{/gist_id}","starred_url":"https://api.github.com/users/nekojira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nekojira/subscriptions","organizations_url":"https://api.github.com/users/nekojira/orgs","repos_url":"https://api.github.com/users/nekojira/repos","events_url":"https://api.github.com/users/nekojira/events{/privacy}","received_events_url":"https://api.github.com/users/nekojira/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2015-08-13T16:13:59Z","updated_at":"2015-09-01T20:51:12Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-08-31T12:55:10Z","updated_at":"2015-09-05T06:07:42Z","closed_at":null,"body":"The dropdown for selecting a calendar in widget uses select2() to enhance the standard select input dropdown. This works and select2() is correctly initialized on the target element.\r\n\r\nHowever, when a new calendar is just dropped in the right sidebar of active widgets, the select2 input is not clickable. Probably related to height calculations of original container? Original visibility of container?\r\n\r\nIt will work after it is saved and page is refreshed, even if the accordions in active widgets sidebar are collapsed. But users can't select a calendar when immediately added and might think it's a bug. "},"comment":{"url":"https://api.github.com/repos/moonstonemedia/WP-Google-Calendar-Events/issues/comments/137913276","html_url":"https://github.com/moonstonemedia/WP-Google-Calendar-Events/issues/51#issuecomment-137913276","issue_url":"https://api.github.com/repos/moonstonemedia/WP-Google-Calendar-Events/issues/51","id":137913276,"user":{"login":"nickyoung87","id":2645164,"avatar_url":"https://avatars.githubusercontent.com/u/2645164?v=3","gravatar_id":"","url":"https://api.github.com/users/nickyoung87","html_url":"https://github.com/nickyoung87","followers_url":"https://api.github.com/users/nickyoung87/followers","following_url":"https://api.github.com/users/nickyoung87/following{/other_user}","gists_url":"https://api.github.com/users/nickyoung87/gists{/gist_id}","starred_url":"https://api.github.com/users/nickyoung87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickyoung87/subscriptions","organizations_url":"https://api.github.com/users/nickyoung87/orgs","repos_url":"https://api.github.com/users/nickyoung87/repos","events_url":"https://api.github.com/users/nickyoung87/events{/privacy}","received_events_url":"https://api.github.com/users/nickyoung87/received_events","type":"User","site_admin":false},"created_at":"2015-09-05T06:07:42Z","updated_at":"2015-09-05T06:07:42Z","body":"@nekojira What do you think of this?\r\n\r\n```php\r\n$(document).ajaxStop(function() {\r\n\t\t\t$( '.gce-field-select-enhanced' ).each( function( e, i ) {\r\n\r\n\t\t\t\tvar field = $(i),\r\n\t\t\t\t\tnoResults = field.data( 'noresults' ),\r\n\t\t\t\t\tallowClear = field.data( 'allowclear' );\r\n\r\n\t\t\t\tfield.select2({\r\n\t\t\t\t\tallowClear     : allowClear != 'undefined' ? allowClear : false,\r\n\t\t\t\t\tplaceholder    : {\r\n\t\t\t\t\t\tid         : '',\r\n\t\t\t\t\t\tplaceholder: ''\r\n\t\t\t\t\t},\r\n\t\t\t\t\tdir            : gce_admin.text_dir != 'undefined' ? gce_admin.text_dir : 'ltr',\r\n\t\t\t\t\ttokenSeparators: [','],\r\n\t\t\t\t\twidth          : '100%',\r\n\t\t\t\t\tlanguage       : {\r\n\t\t\t\t\t\tnoResults: function() {\r\n\t\t\t\t\t\t\treturn noResults != 'undefined' ? noResults : '';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} );\r\n\t\t\t} );\r\n\t\t});\r\n```"}}