Close jquery.dialog programmatically?

Permalink
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?

$.fn.dialog.open({
   title: '',
   href: $(this).attr('data-url'),
   width: 550,
   modal: false,
   height: 380
});

maf
 
Remo replied on at Permalink Best Answer Reply
Remo
.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:
$.fn.dialog.closeTop();
maf replied on at Permalink Reply
maf
Worked fine, thanks Remo!