meteor_supercalendar
meteor_supercalendar copied to clipboard
Adding userId to events
Is it possible to add userId to every event? I need to track down who created certain tasks or even create private calendars.
Right now it's only possible if you override the view you want to make the insert and show a new modal or redirect to a new page: https://github.com/gabrielhpugliese/meteor_supercalendar#custom-events
For example, render a new modal called my_insert_modal
whenever user clicks on a day:
SuperCalendar.events.onDayClick: function (e, t, data) {
AntiModals.overlay('my_insert_modal', {
data: { // send data here }
});
};
Same as #11
Ok, thanks. Would you consider adding that by default? I can submit pull request. I think userId is useful in many cases.
Sure, that would be great.
On Mon, Aug 3, 2015 at 3:31 PM Alex Bachuk [email protected] wrote:
Ok, thanks. Would you consider adding that by default? I can submit pull request. I think userId is useful in many cases.
— Reply to this email directly or view it on GitHub https://github.com/gabrielhpugliese/meteor_supercalendar/issues/12#issuecomment-127363409 .
Another possibility to add things to the Collection is using https://github.com/matb33/meteor-collection-hooks
On Mon, Aug 3, 2015 at 4:43 PM Gabriel Pugliese [email protected] wrote:
Sure, that would be great.
On Mon, Aug 3, 2015 at 3:31 PM Alex Bachuk [email protected] wrote:
Ok, thanks. Would you consider adding that by default? I can submit pull request. I think userId is useful in many cases.
— Reply to this email directly or view it on GitHub https://github.com/gabrielhpugliese/meteor_supercalendar/issues/12#issuecomment-127363409 .