Page is a not externally linkable
DrDoc - 6:36 pm on Dec 7, 2012 (gmt 0)
The problem is that the JavaScript code completes much faster than the browser takes to redirect.
A very simple fix is to make your code a complete if...else statement:
if (data.redirect) {
window.location.href = data.redirect;
} else {
if (data.content) {
$("#tableData").html(data.content);
$("#dashboardData").html(data.dashboard);
}
simpleDialog(part)
}