Révision 62424bdb
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/www/pkg_edit.php | ||
---|---|---|
937 | 937 |
echo "<input name='id' type='hidden' value=\"" . htmlspecialchars($id) . "\" />"; |
938 | 938 |
echo "<input name='Submit' type='submit' class='formbtn' value=\"" . htmlspecialchars($savevalue) . "\" />\n{$pkg_buttons}\n"; |
939 | 939 |
if (!$only_edit){ |
940 |
echo "<input class='formbtn' type='button' value='".gettext("Cancel")."' onclick='history.back()' />";
|
|
940 |
echo "<input class=\"formbtn\" type=\"button\" value=\"".gettext("Cancel")."\" onclick=\"window.location.href='" . $_SERVER['HTTP_REFERER'] . "'\" />";
|
|
941 | 941 |
} |
942 | 942 |
?> |
943 | 943 |
</div> |
Formats disponibles : Unified diff
Remove almost all calls to history.back() and make Cancel button back to HTTP_REFERER, there are a couple of places I didn't touch on this commit because it requires more work