- Fixed bug #226: Back button no longer uses the history "back" which is too unpredictable.

SVN:trunk[792]
This commit is contained in:
Denis Flaven
2010-09-07 16:17:09 +00:00
parent 142a64dfc9
commit d0e07c634a
2 changed files with 7 additions and 1 deletions

View File

@@ -1267,7 +1267,7 @@ EOF
{
// The object does not exist in the database it's a creation
$oPage->add("<input type=\"hidden\" name=\"operation\" value=\"apply_new\">\n");
$oPage->add("<button type=\"button\" class=\"action\" onClick=\"goBack()\"><span>".Dict::S('UI:Button:Cancel')."</span></button>&nbsp;&nbsp;&nbsp;&nbsp;\n");
$oPage->add("<button type=\"button\" class=\"action\" onClick=\"BackToList('$sClass')\"><span>".Dict::S('UI:Button:Cancel')."</span></button>&nbsp;&nbsp;&nbsp;&nbsp;\n");
$oPage->add("<button type=\"submit\" class=\"action\"><span>".Dict::S('UI:Button:Create')."</span></button>\n");
}
$oPage->add("</form>\n");

View File

@@ -294,6 +294,12 @@ EOF
window.location.href = './UI.php?operation=details&class='+sClass+'&id='+id;
}
function BackToList(sClass)
{
window.location.href = './UI.php?operation=search_oql&oql_class='+sClass+'&oql_clause=WHERE id=0';
}
function ShowDebug()
{
if ($('#rawOutput > div').html() != '')