Close jquery.dialog programmatically?

I'm having problems closing my c5 jquery dialogs programmatically. Can't get the .dialog('close') function to work on any of the dialog elements.

Any ideas?

   title: '',
   href: $(this).attr('data-url'),
   width: 550,
   modal: false,
   height: 380

View Replies: View Best Answer
Remo replied on at Permalink Best Answer Reply
.dialog('close') is the jquery ui dialog method. When concrete5 was built there was no jQuery UI, the c5 guys therefore built their own dialog class which is why the methods are different.

Try this:
maf replied on at Permalink Reply
Worked fine, thanks Remo!