jQWidgets Forums

jQuery UI Widgets Forums Scheduler How to bind a click event to editRecurrenceDialog buttons

This topic contains 1 reply, has 1 voice, and was last updated by  dalsword 7 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • dalsword
    Participant

    Hi;
    I need to bind a click event to editRecurrenceDialog buttons, “Edit Occurrence” and “Edit The Series”.
    I figured that, this dialog is dynamically added to the DOM and id of the former buttons is “#editRecurringAppointmentOccurrence.scheduler”. Thus, I have added the following code in .js file but did not work for me:

    $(document).on(‘click’, ‘#editRecurringAppointmentOccurrence\\.scheduler’, function(){
    console.log(‘Edit Occurrence button is clicked’);
    });

    Any help would be appreciated.
    Thanks


    dalsword
    Participant

    SOLVED…For some reason, developers attached a mousedown event to the corresponding button (Edit Occurrence) within jqxscheduler.js. Since the editRecurrenceDialog disappears after this event is fired, the click event never gets fired. It took me hours to figure…

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.