Перенаправление диалогового окна jquery ui при закрытии

Я пробовал разные способы сделать это, но не могу заставить его работать. Это код:

    $.ui.dialog.defaults.bgiframe = true;
$(function() {
    $("#category_edit_dialog").dialog({
        width: 960,
        hide: 'slide',
        position: 'top',
        show: 'slide',
        close: function(event, ui) { redirect here? how? }
    });
    });
});

Спасибо dekomote за помощь. По его совету я решил проблему: вот полный рабочий код:

 $.ui.dialog.defaults.bgiframe = true;
$(function() {
    $("#category_edit_dialog").dialog({
        width: 960,
        hide: 'slide',
        position: 'top',
        show: 'slide',
        close: function(event, ui) { location.href = 'url here' }
    });
});
13
задан Harry Johnston 6 May 2014 в 03:00
поделиться