How to close previous popovers in fullCalendar?
目前我的日曆希望能點選事件 (event)時可以有 bootstrap popover功能出現且規則如下
- 一次只能有一個 popover出現
- 點選 event時,只顯示該 event popover
- 點選 day時要把顯示的 popover關閉,如果有 more視窗存在,也要一併關閉
- 因為有設定 eventLimt,所以在點選 more時,要把 popover關閉
參考文件:google calendar api - javascript範例
上面的參考文件使用 OAuth 2讀取非公開的日曆步驟如下:
1. Google Developers Console創件一個 project (如果有就省略)
2. API的部份記得要開通 calendar API
3. 到憑證 (Credentials)至少要有一個 web application憑證
a. Authorized JavaScript Origins記得要輸入網址如http://localhost:8000
,可以是 IP或是 domain name,可以多個,這是你實際 javascript讀取 API要識別的。
b. Authorized Redirect URIs 要清空