jQWidgets Forums

jQuery UI Widgets Forums Dialogs and Notifications Window Firing jqxWindow.close event upon selection of DateTime

Tagged: ,

This topic contains 1 reply, has 1 voice, and was last updated by  catin 12 years, 3 months ago.

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

  • catin
    Member

    Hello, I am facing weird problem here. When I select a date from #1 which is displayed inside window #2, it fires the window close event #3. I don’t understand what is the connection here. Please help me understand. I don’t want the event to be fired.

    #1:
    var date = new Date();
    date.setFullYear(2000, 0, 1);
    $(‘#dob’).jqxDateTimeInput({ theme: theme, height: 22, value: $.jqx._jqxDateTimeInput.getDateTime(date) });

    #2:
    $(‘#window’).jqxWindow({showCollapseButton: true, maxHeight: 400, maxWidth: 700, minHeight: 400, minWidth: 700, height: 400, width: 700, theme: theme,title:”Add New Profile“});

    #3:
    $(document).on(‘close’,’#window’, function() {
    alert(‘1’);
    });


    catin
    Member

    Looks like I have solved the mystery. upon selection of date, close event on the date div is fired and the event is propagated up the DOM tree which results in window.close event.

    Thanks.

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

You must be logged in to reply to this topic.