Skip to main content

Bug Tracker

Side navigation

#9714 closed bug (invalid)

Opened June 30, 2011 08:31PM UTC

Closed July 11, 2011 04:59PM UTC

Last modified March 22, 2012 03:36PM UTC

Binding an event in dialog.open function causes endless loop in IE8.0

Reported by: sosborne@mathsolutions.com Owned by:
Priority: low Milestone: 1.next
Component: misc Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:
Description

The following code causes an endless loop such that the dialog in question appears to be repeatedly appended to the end of the page. The vertical scroll gets longer and longer, but if you scroll down fast enough, you can see the dialog flickering. The offending code is in bold. I do not get this in 1.4.2 but I do get it with 1.4.4 and 1.5.1 as well.

    $(document).ready(
        function () {
            $("#modal-dialog").dialog({
                autoOpen: false,
                modal: true,
                width: 350,
                height: 235,
                closeOnEscape: false,
                draggable: false,
                resizable: false,
                open: function (event, ui) {
  '''                  $('#refresh').bind("keypress", function (e) {
                        if (e.keyCode == 13 && $(e.target).is(':input')) {
                            $('#btnRefreshLogon').click();
                        }
                    }'''
                    );
                },
                close: function (event, ui) { $('#refresh').unbind('keypress'); }
            });
        }
    );
Attachments (0)
Change History (2)

Changed July 11, 2011 04:59PM UTC by addyosmani comment:1

component: unfiledmisc
priority: undecidedlow
resolution: → invalid
status: newclosed

Thanks for submitting a ticket to the jQuery project! Unfortunately, this is the jQuery core tracker and we're unable to assist with issues related to jQuery UI. For further help please resubmit your ticket to the jQuery UI bug tracker where a member of the UI team will be able to evaluate the issue in your ticket further.

Changed March 22, 2012 03:36PM UTC by anonymous comment:2

yep... happens to me too ...