Nevermind. I see it's fixed (but not backward-compatible) in trunk. Considering how easy it would be to simply deprecate "beforeclose" rather than braking code, why?
**--** Steve On Dec 23, 1:17 pm, Steven Black <ste...@stevenblack.com> wrote: > Richard, bit of a pain that the "beforeclose" Dialog event has an > inconsistent capitalization, eh? > > We should fix that... > > **--** Steve > > On Dec 23, 11:25 am, "Richard D. Worth" <rdwo...@gmail.com> wrote: > > > You've got it right, except for the case > > > Change > > > beforeClose: function(event, ui) { return false; } > > > to > > > beforeclose: function(event, ui) { return false; } > > >http://docs.jquery.com/UI/Dialog#event-beforeclose > > > - Richard > > > On Wed, Dec 23, 2009 at 4:10 AM, yassine <yassine.til...@gmail.com> wrote: > > > Hi everybody, > > > > can someone please give an effective example for preventing the > > > closing of a dialog? > > > > Sadly, the official jQuery UI documentation gives only the global > > > syntax for the beforeClose event. > > > I tried with this code : > > > > $('#preload').dialog({ > > > autoOpen: false, > > > width: 300, > > > bgiframe:true, > > > modal:true, > > > resizable:false, > > > closeOnEscape:false, > > > draggable:false, > > > title:'Chargement en cours ...', > > > beforeClose :function(event,ui){ > > > return false;} > > > }); > > > > but it didn't work ... :( > > > > please help ... > > > > -- > > > > You received this message because you are subscribed to the Google Groups > > > "jQuery UI" group. > > > To post to this group, send email to jquery...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > jquery-ui+unsubscr...@googlegroups.com<jquery-ui%2bunsubscr...@googlegroups.com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/jquery-ui?hl=en. > > -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.