If you have Modalframe installed FBSS opens delete and edit in a modalframe. If you delete a post with attachment, after clicking delete the modal is not closed and it loads the full site in the modal.
To fix this I had to edit the fbsmp.module file in the function fbsmp_delete_confirm in line 760:
function fbsmp_delete_confirm($form, &$form_state) {
fbsmp_delete_status($form_state['values']['status-sid'], _fbsmp_get_fbss_alerts());
if (isset($_GET['destination'])) {
$form_state['redirect'] = $_GET['destination'];
}
else {
$form_state['redirect'] = 'user';
}
//added this to close the modal dialog.
if (module_exists('modalframe')) {
modalframe_close_dialog();
}
}
Comments
Comment #1
publicmind commentedNeat. Committed to 2.x branch.
Thanks,