{"action":"created","issue":{"url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues/1161","repository_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr","labels_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues/1161/labels{/name}","comments_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues/1161/comments","events_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues/1161/events","html_url":"https://github.com/LibreHealthIO/lh-ehr/pull/1161","id":327901450,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxNTgyNTQw","number":1161,"title":"GSoC 2018 : Calendar Improvements-Event based refresh","user":{"login":"apooravc","id":25399108,"node_id":"MDQ6VXNlcjI1Mzk5MTA4","avatar_url":"https://avatars3.githubusercontent.com/u/25399108?v=4","gravatar_id":"","url":"https://api.github.com/users/apooravc","html_url":"https://github.com/apooravc","followers_url":"https://api.github.com/users/apooravc/followers","following_url":"https://api.github.com/users/apooravc/following{/other_user}","gists_url":"https://api.github.com/users/apooravc/gists{/gist_id}","starred_url":"https://api.github.com/users/apooravc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apooravc/subscriptions","organizations_url":"https://api.github.com/users/apooravc/orgs","repos_url":"https://api.github.com/users/apooravc/repos","events_url":"https://api.github.com/users/apooravc/events{/privacy}","received_events_url":"https://api.github.com/users/apooravc/received_events","type":"User","site_admin":false},"labels":[{"id":435294051,"node_id":"MDU6TGFiZWw0MzUyOTQwNTE=","url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/labels/Review%20Requested!","name":"Review Requested!","color":"ffff00","default":false},{"id":501021374,"node_id":"MDU6TGFiZWw1MDEwMjEzNzQ=","url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/labels/Tested","name":"Tested","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-30T21:13:17Z","updated_at":"2018-05-31T19:58:57Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/1161","html_url":"https://github.com/LibreHealthIO/lh-ehr/pull/1161","diff_url":"https://github.com/LibreHealthIO/lh-ehr/pull/1161.diff","patch_url":"https://github.com/LibreHealthIO/lh-ehr/pull/1161.patch"},"body":"Fixes #824 \r\n\r\nThere are 3 buttons in event panel which require calendar refresh after their respective processes are completed. These are- Save, Delete and Create Duplicate. These buttons have an event listener `click` attached on them so that when a user clicks on one of these buttons, the flow of control reaches blocks of  `$_POST['form_action'] ==`**`value`** in `add_edit_event.php` with  **`value`** of  `save`, `delete` or `duplicate` which comes from the corresponding button which was clicked. In this commit, I've added a function `refreshCalendar()` to these blocks which is called after the Save, Delete or Create Duplicate process is completed and refreshes the Calendar tab showing the changes made.\r\n\r\nBesides these, there are some more events where a Calendar refresh may be needed. For example:\r\n1. Adding a new facility or new user to Calendar.\r\n2. Editing a facility or user in the Calendar.\r\n\r\nThese events should be considered for covering the cases where Calendar tab is also open along with Facilities or Users tab.  \r\n\r\nI'm looking for more such events and will address them in my next commit.\r\n\r\n@teryhill Please have a look. "},"comment":{"url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues/comments/393660896","html_url":"https://github.com/LibreHealthIO/lh-ehr/pull/1161#issuecomment-393660896","issue_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues/1161","id":393660896,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzY2MDg5Ng==","user":{"login":"teryhill","id":4655366,"node_id":"MDQ6VXNlcjQ2NTUzNjY=","avatar_url":"https://avatars1.githubusercontent.com/u/4655366?v=4","gravatar_id":"","url":"https://api.github.com/users/teryhill","html_url":"https://github.com/teryhill","followers_url":"https://api.github.com/users/teryhill/followers","following_url":"https://api.github.com/users/teryhill/following{/other_user}","gists_url":"https://api.github.com/users/teryhill/gists{/gist_id}","starred_url":"https://api.github.com/users/teryhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teryhill/subscriptions","organizations_url":"https://api.github.com/users/teryhill/orgs","repos_url":"https://api.github.com/users/teryhill/repos","events_url":"https://api.github.com/users/teryhill/events{/privacy}","received_events_url":"https://api.github.com/users/teryhill/received_events","type":"User","site_admin":false},"created_at":"2018-05-31T19:58:57Z","updated_at":"2018-05-31T19:58:57Z","author_association":"MEMBER","body":"Okay good thought. I like it."}}
{"actor":{"display_login":"teryhill"}}