Invoke Lightbox on click event

Hello,
We have to accomplish two things

  1. Display Lighbox when i click (single left click) on calender with few default parameter.
    Event if it is in any default view mode.

  2. I have two button’s on page

    1. add event
    2. remove event
      By clicking on these button’s we should able to perform add event and remove event operations respectively.

Please let me know how we can do that.


(1)
You need to add the next js code on the page

scheduler.attachEvent("onEmptyClick", function(date){
   scheduler.addEventNow({
          start:date,
          text:"New event"
   });
});

(2)
you can assing the next js code to “add” button

scheduler.addEventNow();

as for “remove” - which event you want to remove by clicking on it?
Last selected event will be

scheduler.deleteEvent(scheduler.getState().select_id);

Thanks a ton!
It worked with few modifications.