mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 11:13:29 +00:00
Additional fix for bug 87770: attachment.cgi should work with no
parameters. Use <button> tags to allow for localization of the labels. r=myk, a=myk. I padded the Edit button with s to ensure it has the same width as the View button; it may not be kosher but passes as visually agreeable, at least.
This commit is contained in:
parent
71f5f4282a
commit
f645d0afdd
@ -76,15 +76,6 @@ my $cgi = Bugzilla->cgi;
|
||||
# Determine whether to use the action specified by the user or the default.
|
||||
my $action = $::FORM{'action'} || 'view';
|
||||
|
||||
# Slight awkward extra checks for the case when we came here from the
|
||||
# attachment/choose.html.tmpl page
|
||||
if ($action eq 'View') {
|
||||
$action = 'view';
|
||||
}
|
||||
elsif ($action eq 'Edit') {
|
||||
$action = 'edit';
|
||||
}
|
||||
|
||||
if ($action eq "view")
|
||||
{
|
||||
validateID();
|
||||
|
@ -28,8 +28,8 @@
|
||||
<form method="get" action="attachment.cgi">
|
||||
<p>Access an attachment by entering its ID into the form below:</p>
|
||||
<p>Attachment ID: <input name="id" size="6">
|
||||
<input type="submit" name="action" value="Edit">
|
||||
<input type="submit" name="action" value="View">
|
||||
<button name="action" value="edit"> Edit </button>
|
||||
<button name="action" value="view">View</button>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user