{"action":"opened","issue":{"url":"https://api.github.com/repos/Runalyze/Runalyze/issues/1757","repository_url":"https://api.github.com/repos/Runalyze/Runalyze","labels_url":"https://api.github.com/repos/Runalyze/Runalyze/issues/1757/labels{/name}","comments_url":"https://api.github.com/repos/Runalyze/Runalyze/issues/1757/comments","events_url":"https://api.github.com/repos/Runalyze/Runalyze/issues/1757/events","html_url":"https://github.com/Runalyze/Runalyze/issues/1757","id":140298481,"number":1757,"title":"Search form: date picker does not work after first submit","user":{"login":"laufhannes","id":8313118,"avatar_url":"https://avatars.githubusercontent.com/u/8313118?v=3","gravatar_id":"","url":"https://api.github.com/users/laufhannes","html_url":"https://github.com/laufhannes","followers_url":"https://api.github.com/users/laufhannes/followers","following_url":"https://api.github.com/users/laufhannes/following{/other_user}","gists_url":"https://api.github.com/users/laufhannes/gists{/gist_id}","starred_url":"https://api.github.com/users/laufhannes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laufhannes/subscriptions","organizations_url":"https://api.github.com/users/laufhannes/orgs","repos_url":"https://api.github.com/users/laufhannes/repos","events_url":"https://api.github.com/users/laufhannes/events{/privacy}","received_events_url":"https://api.github.com/users/laufhannes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Runalyze/Runalyze/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-11T21:37:39Z","updated_at":"2016-03-11T21:37:39Z","closed_at":null,"body":"```\r\nUncaught TypeError: Cannot read property 'calendars' of undefined\r\n```\r\nin (line 4 here)\r\n```js\r\nfill = function(el) {\r\n\tvar options = $(el).data('datepicker');\r\n\tvar cal = $(el);\r\n\tvar currentCal = Math.floor(options.calendars/2), date, data, dow, month, cnt = 0, week, days, indic, indic2, html, tblCal;\r\n\tcal.find('td>table tbody').remove();\r\n\t...\r\n```"}}