views:

124

answers:

1

hi,

i'm having my own listview widget inside a jQuery dialog. i'd like having the following dialog attributes for the dialog:

  • close on esc
  • but don't autoclose the dialog when clicking somewhere

i set beforeclose: function(){return false;} which disables auto-close

the problems:

  • closing by esc doesnt work anymore

  • when clicking my listview, i'm trying to close the dialog manually by: this.div.dialog({beforeclose:null}); but doesn't help

so i can't close the dialog at all :/

any ideas to fix it?

+1  A: 

beforeclose sounds like callback that calls a function before the dialog closes. You need to look for a click event or the element that the click event is attached to and try and stop this.

matpol