search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Initialize daypilot in a separate window (window popup, window.open)

Asked by Viktor Eriksson
6 years ago.

Maybe there are more than one problem but i'm stuck at pretty much the first row.
I am trying to allow my users to make the scheduler/calendar "fullscreen" by snapping it out of the main window into a child popup window. Here I try to reinitialize the scheduler/calendar by running init again on it. Problem is though that first row in init is this:
this.nav.top = document.getElementById(id);

Which will refer to the original document belonging to the original window.
Would be nice to pass a dom object intead of an id to the scheduler/calendar.

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.