Opened 15 years ago

Closed 15 years ago

#3837 closed bug (fixed)

dialog open/close callbacks are not called

Reported by: bmoen Owned by:
Priority: minor Milestone: 1.7
Component: ui.dialog Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

Description

The open and close callback functions are not being called when the dialog is opened or closed.

Occurs in both jquery ui 1.5.3 and 1.6rc4.

Using jQuery v1.2.6, this occurs in IE6 but works fine in Firefox 3.

Using the new jQuery v1.3 it also breaks in Firefox.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled</title>
<script type="text/javascript" src="jquery-1.3.js"></script>
<script type="text/javascript" src="jquery-ui-1.5.3.js"></script>
<script type="text/javascript">
$(document).ready(function() {
   $("#dialog").dialog({
      open: function(event, data) {
         $("#dialog p").text("I'm open");
      },
      close: function(event, data) {
         $("#dialog p").text("I'm closed");
      }
   });
});
</script>
</head>

<body>
   <div id="dialog"><p>Hello World</p></div>
</body>
</html>

Change History (1)

comment:1 Changed 15 years ago by Scott González

Milestone: TBD1.6
Resolution: fixed
Status: newclosed

No currently released versions of UI are compatible with 1.3. Please use current SVN or 1.6rc5 (scheduled for release tonight) with 1.3.

Note: See TracTickets for help on using tickets.