- Bug fix: when creating a new object the "Cancel" button must go somewhere !

SVN:trunk[1002]
This commit is contained in:
Denis Flaven
2010-11-30 15:55:40 +00:00
parent 018344578e
commit 9d1df1b799
5 changed files with 20 additions and 3 deletions

View File

@@ -369,9 +369,16 @@ EOF
window.history.back();
}
function BackToDetails(sClass, id)
function BackToDetails(sClass, id, sDefaultUrl)
{
window.location.href = './UI.php?operation=details&class='+sClass+'&id='+id;
if (id > 0)
{
window.location.href = './UI.php?operation=details&class='+sClass+'&id='+id;
}
else
{
window.location.href = sDefaultUrl;
}
}